True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

void TA::DynamicObject::SetInertiaFromBox (
const AABB &   aabb  )
 

Call this function to set the inertia tensor of the object. The inertia tensor will be calculated for a solid box with the current mass of the dynamic object. This function will also change the center offset to the center of the box.

See also:
TA::DynamicObject::GetInverseInertia, TA::DynamicObject::GetWorldSpaceInertia, TA::DynamicObject::GetWorldSpaceInverseInertia, TA::DynamicObject::SetInertiaFromBox(const AABB& aabb) and TA::DynamicObject::SetInertiaFromBox(float fX, float fY, float fZ).
Parameters:
aabb
The box that the new inertia tensor will be calculated from.
Returns:
The inertia tensor of the object in local space.



© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.