org.odejava
Class JointFixed

java.lang.Object
  extended by org.odejava.Joint
      extended by org.odejava.JointFixed

public class JointFixed
extends Joint

A joint that maintains a fixed relationship between the two bodies. This joint type should only be used for debugging as two bodies being glued together with this joint would be more effectively represented as a single body.

Created 20.12.2003 (dd.mm.yyyy)

Author:
Jani Laakso E-mail: jani.laakso@itmill.com see http://odejava.dev.java.net

Field Summary
 
Fields inherited from class org.odejava.Joint
body1, body2, BOUNCE_RANGE_MSG, deleted, feedback, group, jointGroupId, jointId, name
 
Constructor Summary
JointFixed(String name, World world, JointGroup jointGroup)
          Create a new Fixed joint that belongs to the given world.
JointFixed(World world, JointGroup jointGroup)
          Create a new fixed joint that belongs to the given world.
 
Method Summary
 void setFixed()
          Once the two bodies are attached and located in their desired positions, call this method to have ODE to remember these value of position and orientation.
 
Methods inherited from class org.odejava.Joint
attach, delete, enableFeedbackTracking, enableFeedbackTracking, getBody1, getBody2, getFeedback, getGroup, getName, getParam, isFeedbackTrackingEnabled, setAxis1, setAxis2, setName, setParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JointFixed

public JointFixed(String name,
                  World world,
                  JointGroup jointGroup)
Create a new Fixed joint that belongs to the given world. The JointGroup and name parameters are optional. If no group is provided, the joint is attached to the global environment.

Parameters:
name - A label string to associate with this joint
world - The world that this belongs to
jointGroup - An optional group to associate this joint with

JointFixed

public JointFixed(World world,
                  JointGroup jointGroup)
Create a new fixed joint that belongs to the given world. The JointGroup is optional and the name is set to the null string. If no group is provided, the joint is attached to the global environment.

Parameters:
world - The world that this belongs to
jointGroup - An optional group to associate this joint with
Method Detail

setFixed

public void setFixed()
Once the two bodies are attached and located in their desired positions, call this method to have ODE to remember these value of position and orientation.