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

void TA::PhysicsJoint::InitialiseEulerConstraintEx (
const Vec3 &   v3LocalPosOnA,
const Vec3 &   v3LocalPosOnB,
const Mat33 &   m33JointOrientation,
const Mat33 &   m33DefaultRotationA,
const Mat33 &   m33DefaultRotationB,
const EulerAngles &   minAngles,
const EulerAngles &   maxAngles
 

This is an extended version of the function InitialiseEulerConstraint.

Call this function to initialise the joint as an Euler Angle Constraint. This type of joint, joins two objects at one location, and constrains their relative rotation using minimum and maximum euler angles. This provides a flexible method for creating different types of joints however, gimbal lock can sometimes be a problem.

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.
m33JointOrientation
The initial orientation of the joint, specified in world space. The euler angle constraints work in the space specified by this orientation.
m33DefaultRotationA
Used as the orientation of Object A when using m33JointOrientation to calculate the joints default orientation in relation to Object A.
m33DefaultRotationB
Used as the orientation of Object B when using m33JointOrientation to calculate the joints default orientation in relation to Object B.
minAngles
The minimum euler angle constraints. To ignore a constraint use the floating point value TA::JOINT_LIMIT_DISABLED.
maxAngles
The maximum euler angle constraints. To ignore a constraint use the floating point value TA::JOINT_LIMIT_DISABLED.



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