Call this function to change how velocity is used by True Axis.
By setting this to true, users can move a DynamicObject with TA::DynamicObject::SetNextFrame and the velocities will be automatically updated in TA::DynamicObject::Update. The default value is false, in this case, TA::DynamicObject::Update ignores and replaces any value set with TA::DynamicObject::SetNextFrame based on current velocities.
During TA::Physics::Update, TA::DynamicObject::Update is called for all moving objects before collision testing is done. By default, TA::DynamicObject::Update calculates the objects new position and orientation based on its current linear and angular velocities. This new position is then used for collisions testing.
If this function is called with the parameter bValue set true, then this behaviour is reversed. TA::DynamicObject::Update will now calculate linear and angular velocities based the deference between the current orientation and position and the new orientation and position set with TA::DynamicObject::SetNextFrame.
- Parameters:
-
| bValue |
| | false to update objects based on velocities, true to update objects based on TA::DynamicObject::SetNextFrame |
- See Also:
- TA::DynamicObject::GetFindVelocityFromNextFrame.
|