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

void TA::DynamicObject::ReinitCollisionAsASphere (
const Vec3 &   v3Center,
float   fRadius,
int   nFlags = (REINIT_FLAG_UPDATE_MASS | REINIT_FLAG_UPDATE_INERTIA_TENSOR | REINIT_FLAG_UPDATE_CENTER_OFFSET)
 

Call this function to change the current collision object to a sphere, or if already a sphere, change the dimensions.

See also:
TA::DynamicObject::ReinitFlags, TA::DynamicObject::ReinitCollisionAsABox, TA::DynamicObject::ReinitCollisionAsAnOrientedBox, TA::DynamicObject::ReinitCollisionAsACapsule, TA::DynamicObject::ReinitCollisionAsACylinder, TA::DynamicObject::SetCollisionObject and TA::DynamicObject::SetCollisionObjectChanged.
Parameters:
v3Center
The center point of the sphere.
fRadius
The radius of the sphere.
nFlags
Defaults to:
See TA::DynamicObject::ReinitFlags for details.



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