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

void TA::PhysicsJoint::InitialiseBallAndSocketEx (
const Vec3 &   v3LocalPosOnA,
const Vec3 &   v3LocalPosOnB,
const Vec3 &   v3LocalLimitCenterDirectionOnA,
const Vec3 &   v3LocalLimitCenterDirectionOnB,
float   fMaxAngle
 

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

Call this function to initialise this joint as a ball and socket constraint.

Note:
To create a joint, use TA::DynamicObject::AddJoint.
Parameters:
v3LocalPosOnA
The position on Object A where the joint is attached, specified in local space to Object A.
v3LocalPosOnB
The position on Object B where the joint is attached, specified in local space to Object B.
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.