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

void TA::PhysicsJoint::InitialiseSlider (
const Vec3 &   v3PosOnA,
const Vec3 &   v3StartPosOnB,
const Vec3 &   v3EndPosPosOnB
 

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.
See also:
TA::DynamicObject::InitialiseSliderEx.
Parameters:
v3PosOnA
The position of the joint on this object. Specified in world space.
v3StartPosOnB
The start position of the slider constraint. Specified in world space.
v3EndPosPosOnB
The end position of the slider constraint. Specified in world space.
Examples:
SliderJointExample.cpp.



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