|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.odejava.Joint
org.odejava.JointUniversal
public class JointUniversal
Created 20.12.2003 (dd.mm.yyyy)
| Field Summary |
|---|
| Fields inherited from class org.odejava.Joint |
|---|
body1, body2, BOUNCE_RANGE_MSG, deleted, feedback, group, jointGroupId, jointId, name |
| Constructor Summary | |
|---|---|
JointUniversal(String name,
World world)
Create a new Universal joint that belongs to the given world and has a name. |
|
JointUniversal(String name,
World world,
JointGroup jointGroup)
Create a new Universal joint that belongs to the given world. |
|
JointUniversal(World world)
Create a new Universal joint that belongs to the given world and does not belong to any group. |
|
JointUniversal(World world,
JointGroup jointGroup)
Create a new universal joint that belongs to the given world. |
|
| Method Summary | |
|---|---|
org.openmali.vecmath2.Vector3f |
getAnchor()
|
void |
getAnchor(float[] result)
Get the anchor location the joint, relative to body 1 and place it in the user-provided array. |
org.openmali.vecmath2.Vector3f |
getAnchor2()
|
void |
getAnchor2(float[] result)
Get the anchor location the joint, relative to body 2 and place it in the user-provided array. |
float |
getAngle1()
|
float |
getAngle1Rate()
|
float |
getAngle2()
|
float |
getAngle2Rate()
|
org.openmali.vecmath2.Vector3f |
getAxis1()
|
org.openmali.vecmath2.Vector3f |
getAxis2()
|
float |
getParam(int parameter)
Get an unchecked parameter value directly from this joint. |
float |
getStopBounce()
Fetch the current bounce factor for the stop on axis 1. |
float |
getStopBounce2()
Fetch the current bounce factor for the stop on axis 2. |
void |
setAnchor(float x,
float y,
float z)
|
void |
setAxis1(float x,
float y,
float z)
|
void |
setAxis2(float x,
float y,
float z)
|
void |
setParam(int parameter,
float value)
Set a generic, unchecked, parameter directly for this joint. |
void |
setStopBounce(float bounce)
Set the bounciness of the stops for axis 1. |
void |
setStopBounce2(float bounce)
Set the bounciness of the stops for axis 2. |
| Methods inherited from class org.odejava.Joint |
|---|
attach, delete, enableFeedbackTracking, enableFeedbackTracking, getBody1, getBody2, getFeedback, getGroup, getName, isFeedbackTrackingEnabled, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JointUniversal(World world)
world - The world that this belongs to
public JointUniversal(String name,
World world)
name - A label string to associate with this jointworld - The world that this belongs to
public JointUniversal(World world,
JointGroup jointGroup)
world - The world that this belongs tojointGroup - An optional group to associate this joint with
public JointUniversal(String name,
World world,
JointGroup jointGroup)
name - A label string to associate with this jointworld - The world that this belongs tojointGroup - An optional group to associate this joint with| Method Detail |
|---|
public void setAnchor(float x,
float y,
float z)
public org.openmali.vecmath2.Vector3f getAnchor()
public void getAnchor(float[] result)
result - An object to place the values intopublic org.openmali.vecmath2.Vector3f getAnchor2()
public void getAnchor2(float[] result)
result - An object to place the values into
public void setAxis1(float x,
float y,
float z)
setAxis1 in class Jointpublic org.openmali.vecmath2.Vector3f getAxis1()
public void setAxis2(float x,
float y,
float z)
setAxis2 in class Jointpublic org.openmali.vecmath2.Vector3f getAxis2()
public float getAngle1()
public float getAngle1Rate()
public float getAngle2()
public float getAngle2Rate()
public void setStopBounce(float bounce)
throws IllegalArgumentException
bounce - The bounciness factor in the range [0,1]
IllegalArgumentException - The bounce factor is out of rangepublic float getStopBounce()
public void setStopBounce2(float bounce)
throws IllegalArgumentException
bounce - The bounciness factor in the range [0,1]
IllegalArgumentException - The bounce factor is out of rangepublic float getStopBounce2()
public void setParam(int parameter,
float value)
OdeConstants.
setParam in class Jointparameter - A parameter constant from OdeConstantsvalue - The new value to associate with the parameterpublic float getParam(int parameter)
OdeConstants.
getParam in class Jointparameter - A constant describing the parameter to fetch
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||