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

void TA::PhysicsJoint::InitialiseSliderEx (
const Vec3 &   v3LocalPosOnA,
const Vec3 &   v3LocalStartPosOnB,
const Vec3 &   v3LocalEndPosPosOnB
 

This is an alternate version of the function TA::PhysicsJoint::InitialiseSquareSocket. It uses local coordinates rather then global.

Call this function to initialise the joint as a Slider. The Object A will be constrained to slide along the line that connects the points v3StartPosOnOtherObject and v3StartPosOnOtherObject. Sliders can be useful for simulating sliding doors and lifts.

Note:
To create a joint, use TA::DynamicObject::AddJoint.
Parameters:
v3LocalPosOnA
The position of the joint on this object. Specified in space local to Object A.
v3LocalStartPosOnB
The start position of the slider constraint. Specified in space local to Object B.
v3LocalEndPosPosOnB
The end position of the slider constraint. Specified in space local to Object B.



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