void TA::PhysicsJoint::InitialiseLimitedBallAndSocketEx
(
|
const Vec3 &
|
v3LocalPosOnA,
|
|
const Vec3 &
|
v3LocalPosOnB,
|
|
const Mat33 &
|
m33JointOrientation,
|
|
const Mat33 &
|
m33DefaultRotationA,
|
|
const Mat33 &
|
m33DefaultRotationB,
|
|
float
|
fMaxAngleY,
|
|
float
|
fMaxAngleXZ
|
) |
|
|
|
This is an extended version of the function TA::PhysicsJoint::InitialiseLimitedBallAndSocket.
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.
- 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 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. |
| 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. |
|
|