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

void TA::PhysicsJoint::InitialiseVectorConstraintEx (
const Vec3 &   v3LocalLimitCenterDirectionOnA,
const Vec3 &   v3LocalLimitCenterDirectionOnB,
float   fMaxAngle
 

This is an extended version of the function TA::PhysicsJoint::InitialiseVectorConstraint.

Call this function to initialise the joint as a Vector Constraint. The rotation away from v3LimitCenterDirection is limited between the two objects.

Note:
To create a joint, use TA::DynamicObject::AddJoint.
Parameters:
v3LocalLimitCenterDirectionOnA
A normalised vector that points along the center axis of the of the joint, relative to Object A. Specified in local space to Object A.
v3LocalLimitCenterDirectionOnB
A normalised vector that points along the center axis of the of the joint, relative to Object B. Specified in local space to Object B.
fMaxAngle
The maximum angle allowed between v3LocalLimitCenterDirectionOnA and v3LocalLimitCenterDirectionOnB. (radians). To ignore a constraint use the value TA::JOINT_LIMIT_DISABLED.



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