net.java.dev.joode.joint
Class JointBall

java.lang.Object
  extended by net.java.dev.joode.WorldObject
      extended by net.java.dev.joode.joint.Joint
          extended by net.java.dev.joode.joint.JointBall
All Implemented Interfaces:
java.io.Serializable, SimState

public class JointBall
extends Joint

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.java.dev.joode.joint.Joint
Joint.Info1, Joint.Info2
 
Field Summary
 Vector3 anchor1
           
 Vector3 anchor2
           
 
Fields inherited from class net.java.dev.joode.joint.Joint
body, dJOINT_INGROUP, dJOINT_REVERSE, dJOINT_TWOBODIES, feedback, flags, lambda, MAX_BODIES
 
Fields inherited from class net.java.dev.joode.WorldObject
data, tag, world
 
Constructor Summary
JointBall(World world)
           
 
Method Summary
 JointBall cloneState(ClonedReferences util)
           deep clones the state object, any references to other SimState objects should be cloned and assigned to the clone via the ClonedReferences util object.
 void getBallAnchor(Vector3 result)
           
 void getBallAnchor2(Vector3 result)
           
 void getInfo1(Joint.Info1 passback)
           
 void getInfo2(Joint.Info2 passback)
           
protected  void init()
           
 void setBallAnchor(float x, float y, float z)
           
 void setBallAnchor2(float x, float y, float z)
           
 
Methods inherited from class net.java.dev.joode.joint.Joint
attach, destroy, partialCloneJoint, removeJointReferencesFromAttachedBodies, reset, setJointId
 
Methods inherited from class net.java.dev.joode.WorldObject
partialCloneWorldObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

anchor1

public final Vector3 anchor1

anchor2

public final Vector3 anchor2
Constructor Detail

JointBall

public JointBall(World world)
Method Detail

init

protected void init()

getInfo1

public void getInfo1(Joint.Info1 passback)
Specified by:
getInfo1 in class Joint

getInfo2

public void getInfo2(Joint.Info2 passback)
Specified by:
getInfo2 in class Joint

setBallAnchor

public void setBallAnchor(float x,
                          float y,
                          float z)

setBallAnchor2

public void setBallAnchor2(float x,
                           float y,
                           float z)

getBallAnchor

public void getBallAnchor(Vector3 result)

getBallAnchor2

public void getBallAnchor2(Vector3 result)

cloneState

public JointBall cloneState(ClonedReferences util)
Description copied from interface: SimState

deep clones the state object, any references to other SimState objects should be cloned and assigned to the clone via the ClonedReferences util object. The util object ensures that multiple clones of the same object are not performed during a clone operation.

Parameters:
util - instanciate a new one if top level cloning