|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.odejava.Joint
org.odejava.JointBall
public class JointBall
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 | |
|---|---|
JointBall(String name,
World world)
Create a new Ball joint that belongs to the given world and has a name. |
|
JointBall(String name,
World world,
JointGroup jointGroup)
Create a new Ball joint that belongs to the given world. |
|
JointBall(World world)
Create a new Ball joint that belongs to the given world and does not belong to any group. |
|
JointBall(World world,
JointGroup jointGroup)
Create a new Ball joint that belongs to the given world. |
|
| Method Summary | |
|---|---|
org.openmali.vecmath2.Vector3f |
getAnchor()
Get the anchor location of the joint, relative to body 1. |
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 |
getAnchor(org.openmali.vecmath2.Vector3f result)
Get the anchor location of the joint, relative to body 1, and place it in the user-provided data structure. |
org.openmali.vecmath2.Vector3f |
getAnchor2()
Get the anchor location of the joint, relative to body 2. |
void |
getAnchor2(float[] result)
Get the anchor location the joint, relative to body 2 and place it in the user-provided array. |
org.openmali.vecmath2.Vector3f |
getAnchor2(org.openmali.vecmath2.Vector3f result)
Get the anchor location of the joint, relative to body 2, and place it in the user-provided data structure. |
void |
setAnchor(float x,
float y,
float z)
Set the anchor location to a new value, using individual values. |
void |
setAnchor(org.openmali.vecmath2.Vector3f position)
Set the anchor location, relative to body 1 to a new value, using a vector. |
| 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 |
|---|
public JointBall(World world)
world - The world that this belongs to
public JointBall(String name,
World world)
name - A label string to associate with this jointworld - The world that this belongs to
public JointBall(World world,
JointGroup jointGroup)
world - The world that this belongs tojointGroup - An optional group to associate this joint with
public JointBall(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)
x - The x component of the the anchor locationy - The y component of the the anchor locationz - The z component of the the anchor locationpublic final void setAnchor(org.openmali.vecmath2.Vector3f position)
position - A vector holding the anchor locationpublic org.openmali.vecmath2.Vector3f getAnchor()
getAnchor(null).
public org.openmali.vecmath2.Vector3f getAnchor(org.openmali.vecmath2.Vector3f result)
result - An object to place the values into or null
public void getAnchor(float[] result)
result - An object to place the values intopublic org.openmali.vecmath2.Vector3f getAnchor2()
getAnchor2(null).
public org.openmali.vecmath2.Vector3f getAnchor2(org.openmali.vecmath2.Vector3f result)
result - An object to place the values into or null
public void getAnchor2(float[] result)
result - An object to place the values into
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||