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

void TA::PhysicsJoint::InitialiseLimitedBallAndSocket (
const Vec3 &   v3Position,
const Mat33 &   m33JointOrientation,
float   fMaxAngleY,
float   fMaxAngleXZ
 

Call this function to initialise the joint as a Limited Ball And Socket constraint. This extends LimitedBallAndSocket by adding a twist constraint.

Note:
To create a joint, use TA::DynamicObject::AddJoint.
See also:
TA::PhysicsJoint::LimitedBallAndSocketEx.
Parameters:
v3Position
The location, in world space, where the 2 objects are joined.
m33JointOrientation
The initial orientation of the joint, specified in world space. The angle constraints work in the space specified by this orientation.
fMaxAngleY
The maximum twisting allowed of the ball and socket joint. (radians). To ignore a constraint use the value TA::JOINT_LIMIT_DISABLED.
fMaxAngleXZ
The maximum pivot angle of the ball and socket joint. (radians). To ignore a constraint use the value TA::JOINT_LIMIT_DISABLED.



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