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

void TA::DynamicObject::ReinitCollisionAsACapsule (
const Vec3 &   v3Start,
const Vec3 &   v3End,
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 capsule, or if already a capsule, change the dimensions. Here a capsule is taken to mean a cylinder with a hemisphere rounding off each end.

See also:
TA::DynamicObject::ReinitFlags, TA::DynamicObject::ReinitCollisionAsABox, TA::DynamicObject::ReinitCollisionAsAnOrientedBox, TA::DynamicObject::ReinitCollisionAsASphere, TA::DynamicObject::ReinitCollisionAsACylinder, TA::DynamicObject::SetCollisionObject and TA::DynamicObject::SetCollisionObjectChanged.
Parameters:
v3Start
The center point at one end of the cylinder section.
v3End
The center point at the other end the cylinder section.
fRadius
The radius of the cylinder section. The same radius is also used for the hemisphere caps.
nFlags
Defaults to:
See TA::DynamicObject::ReinitFlags for details.



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