This function can be used prevent any change in orientation in a dynamic object due to the physics simulation. This feature was added specifically to help when using a capsule shaped dynamic object so simulate human player and AI movement. It is necessary for objects to be knocked by the player. It is also necessary for objects to have an effect on the player, but you don't what the player to be knocked over. This function can be assure that the player stays upright. There may be other uses as well.
Rotation is enabled by default. - See also:
- TA::DynamicObject::RotationDisabled.
- Examples:
-
SliderJointExample.cpp.
|