org.xith3d.physics.simulation.joints
Class FixedJoint

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

public abstract class FixedJoint
extends Joint

Insert type comment here.


Constructor Summary
FixedJoint(Body body1, Body body2)
           
 
Method Summary
 java.lang.String getInfo()
          
abstract  org.openmali.vecmath2.Matrix3f getInitialRotation()
           
abstract  org.openmali.vecmath2.Vector3f getOffset()
           
 java.lang.String getType()
          
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.
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
 

Constructor Detail

FixedJoint

public FixedJoint(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

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.

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.