net.java.dev.joode.joint
Class Joint

java.lang.Object
  extended by net.java.dev.joode.WorldObject
      extended by net.java.dev.joode.joint.Joint
All Implemented Interfaces:
java.io.Serializable, SimState
Direct Known Subclasses:
JointBall, JointConfigurable, JointContact, JointFixed, JointHinge, JointHinge2, JointSlider

public abstract class Joint
extends WorldObject

Author:
Tom Larkworthy
See Also:
Serialized Form

Nested Class Summary
static class Joint.Info1
          describes the number of constrains, for memory allocation purposes
static class Joint.Info2
          contains the definition of the constraints.
 
Field Summary
 Body[] body
           
static int dJOINT_INGROUP
           
static int dJOINT_REVERSE
           
static int dJOINT_TWOBODIES
           
 JointFeedback feedback
           
 int flags
           
 Real lambda
           
static int MAX_BODIES
           
 
Fields inherited from class net.java.dev.joode.WorldObject
data, tag, world
 
Constructor Summary
protected Joint()
          for cloning
  Joint(World world)
           
 
Method Summary
 void attach(Body body1, Body body2)
           
 void destroy()
           
abstract  void getInfo1(Joint.Info1 info1)
           
abstract  void getInfo2(Joint.Info2 jinfo)
           
 Joint partialCloneJoint(Joint partialClone, ClonedReferences util)
          helper method for children that copies all joint information into the passed in partial clone
 void removeJointReferencesFromAttachedBodies()
           
 void reset()
           
 void setJointId(int id)
           
 
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
 
Methods inherited from interface net.java.dev.joode.SimState
cloneState
 

Field Detail

MAX_BODIES

public static final int MAX_BODIES
See Also:
Constant Field Values

dJOINT_INGROUP

public static final int dJOINT_INGROUP
See Also:
Constant Field Values

dJOINT_REVERSE

public static final int dJOINT_REVERSE
See Also:
Constant Field Values

dJOINT_TWOBODIES

public static final int dJOINT_TWOBODIES
See Also:
Constant Field Values

flags

public int flags

body

public Body[] body

feedback

public JointFeedback feedback

lambda

public Real lambda
Constructor Detail

Joint

public Joint(World world)

Joint

protected Joint()
for cloning

Method Detail

reset

public void reset()

destroy

public void destroy()
Specified by:
destroy in class WorldObject

setJointId

public void setJointId(int id)

getInfo1

public abstract void getInfo1(Joint.Info1 info1)

getInfo2

public abstract void getInfo2(Joint.Info2 jinfo)

removeJointReferencesFromAttachedBodies

public void removeJointReferencesFromAttachedBodies()

attach

public void attach(Body body1,
                   Body body2)

partialCloneJoint

public Joint partialCloneJoint(Joint partialClone,
                               ClonedReferences util)
helper method for children that copies all joint information into the passed in partial clone

Parameters:
partialClone -
util -
Returns: