org.xith3d.physics.simulation.joints
Class BallJoint

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

public abstract class BallJoint
extends Joint

Insert type comment here.


Constructor Summary
BallJoint(Body body1, Body body2)
           
 
Method Summary
abstract  org.openmali.vecmath2.Point3f getAnchor1()
           
abstract  org.openmali.vecmath2.Point3f getAnchor2()
           
 java.lang.String getInfo()
          
 java.lang.String getType()
          
abstract  void setAnchor1(float x, float y, float z)
          Sets the bodyRelAnchor measured relative to body 1.
 void setAnchor1(org.openmali.vecmath2.Tuple3f anchor)
          Sets the bodyRelAnchor measured relative to body 1.
abstract  void setAnchor2(float x, float y, float z)
          Sets the bodyRelAnchor measured relative to body 2.
 void setAnchor2(org.openmali.vecmath2.Tuple3f anchor)
          Sets the bodyRelAnchor measured relative to body 2.
 
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

BallJoint

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

setAnchor1

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

Parameters:
x -
y -
z -

setAnchor1

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

Parameters:
anchor -

getAnchor1

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

setAnchor2

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

Parameters:
x -
y -
z -

setAnchor2

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

Parameters:
anchor -

getAnchor2

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