void TA::PhysicsJoint::InitialiseSquareSocketEx
(
|
const Vec3 &
|
v3LocalPosOnA,
|
|
const Vec3 &
|
v3LocalPosOnB,
|
|
const Mat33 &
|
m33JointOrientation,
|
|
const Mat33 &
|
m33DefaultRotationA,
|
|
const Mat33 &
|
m33DefaultRotationB,
|
|
float
|
fMinX,
|
|
float
|
fMaxX,
|
|
float
|
fMinY,
|
|
float
|
fMaxY,
|
|
float
|
fMinZ,
|
|
float
|
fMaxZ
|
) |
|
|
|
This is an extended version of the function TA::PhysicsJoint::InitialiseSquareSocket.
Call this function to initialise the joint as a Square Socket. A Square Socket is constrained by the shape documented in the diagram below. This type of joint was specifically added for a fast flexible method for doing 'rag doll' to approximate hip and shoulder joints. It may also have other uses.
Joint Constraint Diagram
- 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. |
| fMinX |
| | Minimum x rotation constraint. |
| fMaxX |
| | Maximum x rotation constraint. |
| fMinY |
| | Minimum y rotation constraint. |
| fMaxY |
| | Maximum y rotation constraint. |
| fMinZ |
| | Minimum z rotation constraint. |
| fMaxZ |
| | Maximum z rotation constraint. |
|
|