7 #include "imstkRigidObject2.h" 8 #include "imstkLogger.h" 9 #include "imstkRbdConstraint.h" 10 #include "imstkRigidBodyModel2.h" 22 std::shared_ptr<RigidBodyModel2>
26 return m_rigidBodyModel2;
33 m_rigidBodyModel2 = std::dynamic_pointer_cast<
RigidBodyModel2>(dynaModel);
void setDynamicalModel(std::shared_ptr< AbstractDynamicalModel > dynaModel) override
Sets the model, and creates the body within the model.
std::shared_ptr< RigidBody > m_rigidBody
Gives the actual body within the model.
virtual void updatePhysicsGeometry()
Update only the physics geometry and apply collision map.
This class implements a constraint based rigid body linear system with pgs solver.
bool initialize() override
Initialize the scene object.
std::shared_ptr< AbstractDynamicalModel > m_dynamicalModel
Dynamical model.
void updateGeometries() final
Update the physics geometry and the apply the maps (if defined)
void updatePhysicsGeometry() override
Updates the physics geometry of the object.
std::shared_ptr< RigidBodyModel2 > getRigidBodyModel2()
Add local force at a position relative to object.
bool initialize() override
Initialize the rigid scene object.
std::shared_ptr< Geometry > m_physicsGeometry
Geometry used for Physics.