org.xith3d.physics.simulation.joints
Class HingeJoint

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

public abstract class HingeJoint
extends Joint

Insert type comment here.


Field Summary
protected  JointLimitMotor limot
           
 
Constructor Summary
HingeJoint(Body body1, Body body2)
           
 
Method Summary
abstract  org.openmali.vecmath2.Point3f getAnchor()
           
abstract  org.openmali.vecmath2.Vector3f getAxis()
           
 java.lang.String getInfo()
          
abstract  org.openmali.vecmath2.Matrix3f getInitialRotation()
           
 JointLimitMotor getLimitMotor()
           
 java.lang.String getType()
          
abstract  void setAnchor(float x, float y, float z)
          Sets the bodyRelAnchor measured relative to body 2.
 void setAnchor(org.openmali.vecmath2.Tuple3f anchor)
          Sets the bodyRelAnchor measured relative to body 2.
abstract  void setAxis(float x, float y, float z)
           
 void setAxis(org.openmali.vecmath2.Vector3f axis)
           
abstract  void setInitialRotation(float rotX, float rotY, float rotZ)
          Sets the initial relative rotation.
abstract  void setInitialRotation(org.openmali.vecmath2.Matrix3f rot)
          Sets the initial relative rotation.
 void setLimitMotor(JointLimitMotor limot)
           
protected abstract  void setLimitMotorImpl(JointLimitMotor limot)
           
 
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

HingeJoint

public HingeJoint(Body body1,
                  Body 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

setAnchor

public abstract void setAnchor(float x,
                               float y,
                               float z)
Sets the bodyRelAnchor measured relative to body 2.

Parameters:
x -
y -
z -

setAnchor

public final void setAnchor(org.openmali.vecmath2.Tuple3f anchor)
Sets the bodyRelAnchor measured relative to body 2.

Parameters:
anchor -

getAnchor

public abstract org.openmali.vecmath2.Point3f getAnchor()
Returns:
the bodyRelAnchor measured relative to body 2.

setAxis

public abstract void setAxis(float x,
                             float y,
                             float z)

setAxis

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

getAxis

public abstract org.openmali.vecmath2.Vector3f getAxis()

setInitialRotation

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

Parameters:
rot -

setInitialRotation

public abstract void setInitialRotation(float rotX,
                                        float rotY,
                                        float rotZ)
Sets the initial relative rotation.

Parameters:
rotX -
rotY -
rotZ -

getInitialRotation

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

setLimitMotorImpl

protected abstract void setLimitMotorImpl(JointLimitMotor limot)

setLimitMotor

public final void setLimitMotor(JointLimitMotor limot)

getLimitMotor

public final JointLimitMotor getLimitMotor()