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

void TA::DynamicObject::SetInertiaFromBox (
float   fX,
float   fY,
float   fZ
 

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 not alter the center offset of the dynamic object.

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:
fX
The x dimension box that the new inertia tensor will be calculated from.
fY
The y dimension box that the new inertia tensor will be calculated from.
fZ
The z dimension 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.