org.xith3d.physics.simulation.joints
Class SliderJoint

java.lang.Object
  extended by org.xith3d.physics.simulation.Joint
      extended by org.xith3d.physics.simulation.joints.SliderJoint

public abstract class SliderJoint
extends Joint

Insert type comment here.


Field Summary
protected  JointLimitMotor limot
           
 
Constructor Summary
SliderJoint(Body body1, Body body2)
          Creates a new SliderJoint.
 
Method Summary
abstract  org.openmali.vecmath2.Vector3f getAxis()
          Returns the axis.
 java.lang.String getInfo()
          
abstract  org.openmali.vecmath2.Matrix3f getInitialRotation()
          Returns the initial relative rotation.
 JointLimitMotor getLimitMotor()
          Returns the limit motor.
abstract  org.openmali.vecmath2.Vector3f getOffset()
          Returns the point relative to body2.
 java.lang.String getType()
          
abstract  void setAxis(float x, float y, float z)
           
 void setAxis(org.openmali.vecmath2.Vector3f axis)
          Sets the axis.
abstract  void setInitialRotation(float x, float y, float z)
          Sets the initial relative rotation.
abstract  void setInitialRotation(org.openmali.vecmath2.Matrix3f initialRotation)
          Sets the initial relative rotation.
 void setLimitMotor(JointLimitMotor limot)
          Sets the limit motor.
protected abstract  void setLimitMotorImpl(JointLimitMotor limot)
          Sets the limit motor.
abstract  void setOffset(float x, float y, float z)
          Sets the point relative to body2.
 void setOffset(org.openmali.vecmath2.Tuple3f offset)
          Sets the point relative to body2.
 
Methods inherited from class org.xith3d.physics.simulation.Joint
getBody1, getBody2, getWorld, refresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

limot

protected JointLimitMotor limot
Constructor Detail

SliderJoint

public SliderJoint(Body body1,
                   Body body2)
Creates a new SliderJoint.

Parameters:
body1 -
body2 -
Method Detail

getType

public final java.lang.String getType()

Specified by:
getType in class Joint
Returns:
the name of the Joint, that is, the one which is used to refer to it in CollisionEngine. All camel-case, please ! (e.g. : "Sphere")

getInfo

public java.lang.String getInfo()

Specified by:
getInfo in class Joint
Returns:
a small description of how is this joint, its exact shape, a brief human-readable description of what can be adjusted

setOffset

public abstract void setOffset(float x,
                               float y,
                               float z)
Sets the point relative to body2.

Parameters:
x -
y -
z -

setOffset

public final void setOffset(org.openmali.vecmath2.Tuple3f offset)
Sets the point relative to body2.

Parameters:
offset -

getOffset

public abstract org.openmali.vecmath2.Vector3f getOffset()
Returns the point relative to body2.

Returns:
the point relative to body2

setAxis

public abstract void setAxis(float x,
                             float y,
                             float z)
Parameters:
x -
y -
z -

setAxis

public final void setAxis(org.openmali.vecmath2.Vector3f axis)
Sets the axis.

Parameters:
axis -

getAxis

public abstract org.openmali.vecmath2.Vector3f getAxis()
Returns the axis.

Returns:
the axis

setInitialRotation

public abstract void setInitialRotation(org.openmali.vecmath2.Matrix3f initialRotation)
Sets the initial relative rotation.

Parameters:
initialRotation - the rotation to set

setInitialRotation

public abstract void setInitialRotation(float x,
                                        float y,
                                        float z)
Sets the initial relative rotation.

Parameters:
x -
y -
z -

getInitialRotation

public abstract org.openmali.vecmath2.Matrix3f getInitialRotation()
Returns the initial relative rotation.

Returns:
the rotation

setLimitMotorImpl

protected abstract void setLimitMotorImpl(JointLimitMotor limot)
Sets the limit motor.

Parameters:
limot - the limit to set

setLimitMotor

public final void setLimitMotor(JointLimitMotor limot)
Sets the limit motor.

Parameters:
limot - the limit motor

getLimitMotor

public final JointLimitMotor getLimitMotor()
Returns the limit motor.

Returns:
the limit motor