Call this function to flag a dynamic object as moving. If a dynamic object is already moving, it will normally already be flagged as moving.
Dynamic objects can either be at rest or moving. The physics simulation keeps a list of moving objects. Only moving objects will be updated. If an at rest object is collided with, it will be added to the moving list. When an object comes to rest, it is removed from the moving list.
It may be often necessary to manually set object to be moving. If an object is at rest, calling a function such as TA::DynamicObject::ApplyImpulse will not have an effect with out calling TA::Physics::SetDynamicObjectIsMoving as well. Calling TA::Physics::SetDynamicObjectIsMoving each frame will prevent an object from coming to rest. - Parameters:
-
pDynamicObject | |
A pointer to the dynamic object that will be flagged as moving. Must be non-zero. |
|