9 #include "imstkDynamicObject.h" 10 #include "imstkMacros.h" 15 class RigidBodyModel2;
52 void setDynamicalModel(std::shared_ptr<AbstractDynamicalModel> dynaModel)
override;
60 std::shared_ptr<RigidBodyModel2> m_rigidBodyModel2;
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.
Base class for scene objects that move and/or deform.
std::shared_ptr< RigidBody > getRigidBody() const
Returns body in the model.
void updatePhysicsGeometry() override
Updates the physics geometry of the object.
std::shared_ptr< RigidBodyModel2 > getRigidBodyModel2()
Add local force at a position relative to object.
Scene objects that are governed by rigid body dynamics under the RigidBodyModel2. ...
bool initialize() override
Initialize the rigid scene object.