#include "joint_interface.hpp" class PivotJoint : public JointInterface { protected: void rotate(unsigned int id) override; void traslate(unsigned int id) override; rb::Vector3 oldRot; rb::Vector3 pivot; std::vector oldCRot; //possono servire per calcolare l'offset rispetto alla posizione precedente rb::Vector3 oldPos; std::vector oldCPos; public: void movechild() override; PivotJoint(PieceInterface* father,std::vector childs, rb::Vector3 pivotPoint); ~PivotJoint(); };