|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.odejava.Joint
org.odejava.JointAMotor
public class JointAMotor
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 | |
|---|---|
JointAMotor(String name,
World world)
Create a new AMotor joint that belongs to the given world and has a name. |
|
JointAMotor(String name,
World world,
JointGroup jointGroup)
Create a new AMotor joint that belongs to the given world. |
|
JointAMotor(World world)
Create a new AMotor joint that belongs to the given world and does not belong to any group. |
|
JointAMotor(World world,
JointGroup jointGroup)
Create a new AMotor joint that belongs to the given world. |
|
| Method Summary | |
|---|---|
void |
addTorque(float x,
float y,
float z)
|
void |
addTorque(org.openmali.vecmath2.Vector3f torque)
Convenience method, just calls addTorque(x,y,z) |
float |
getAngle(int anum)
|
float |
getAngleRate(int anum)
|
org.openmali.vecmath2.Vector3f |
getAxis(int anum)
Get the axis vector for the requested axis identifier. |
org.openmali.vecmath2.Vector3f |
getAxis(int anum,
org.openmali.vecmath2.Vector3f val)
Get the axis vector for the requested axis identifier and place it in the user-provided data structure. |
int |
getAxisRel(int anum)
|
int |
getMode()
|
int |
getNumAxes()
Get the number of valid axes currently in use by the motor. |
float |
getParam(int parameter)
Get an unchecked parameter value directly from this joint. |
void |
setAngle(int anum,
float angle)
|
void |
setAxis(int anum,
int rel,
float x,
float y,
float z)
|
void |
setMode(int mode)
|
void |
setNumAxes(int num)
Set the number of valid axes to use for this motor. |
void |
setParam(int parameter,
float value)
Set a generic, unchecked, parameter directly for this joint. |
| Methods inherited from class org.odejava.Joint |
|---|
attach, delete, enableFeedbackTracking, enableFeedbackTracking, getBody1, getBody2, getFeedback, getGroup, getName, isFeedbackTrackingEnabled, setAxis1, setAxis2, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JointAMotor(World world)
world - The world that this belongs to
public JointAMotor(String name,
World world)
name - A label string to associate with this jointworld - The world that this belongs to
public JointAMotor(World world,
JointGroup jointGroup)
world - The world that this belongs tojointGroup - An optional group to associate this joint with
public JointAMotor(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 setMode(int mode)
public int getMode()
public void setNumAxes(int num)
num - The number of valid axes to use. Must be in the range [0,3].public int getNumAxes()
public void setAxis(int anum,
int rel,
float x,
float y,
float z)
public org.openmali.vecmath2.Vector3f getAxis(int anum)
getAxis(anum, null).
anum - The axis number in the range [1,3]
public org.openmali.vecmath2.Vector3f getAxis(int anum,
org.openmali.vecmath2.Vector3f val)
anum - The axis number in the range [1,3]val - An object to place the values into or null
public int getAxisRel(int anum)
public void setAngle(int anum,
float angle)
public float getAngle(int anum)
public float getAngleRate(int anum)
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
public void addTorque(org.openmali.vecmath2.Vector3f torque)
torque - added torque
public void addTorque(float x,
float y,
float z)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||