|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jmex.physics.JointAxis
public abstract class JointAxis
An axis for a Joint. An axis can belong to only one Joint. Each axis adds one degree of freedom to a joint.
Joint,
Joint.createRotationalAxis(),
Joint.createTranslationalAxis()| Field Summary | |
|---|---|
static java.lang.String |
AVAILABLE_ACCELERATION_PROPERTY
|
static java.lang.String |
DESIRED_VELOCITY_PROPERTY
|
static java.lang.String |
DIRECTION_PROPERTY
|
static java.lang.String |
JOINT_PROPERTY
|
static java.lang.String |
POSITION_MAXIMUM_PROPERTY
|
static java.lang.String |
POSITION_MINIMUM_PROPERTY
|
static java.lang.String |
RELATIVE_TO_SECOND_OBJECT_PROPERTY
|
| Method Summary | |
|---|---|
void |
copy(JointAxis toCopy)
Copy axis data from another axis. |
abstract float |
getAvailableAcceleration()
|
abstract float |
getDesiredVelocity()
|
com.jme.math.Vector3f |
getDirection(com.jme.math.Vector3f store)
Query the direction of this axis. |
Joint |
getJoint()
|
abstract float |
getPosition()
Query position of the objects attached to this joint. |
abstract float |
getPositionMaximum()
|
abstract float |
getPositionMinimum()
|
abstract float |
getVelocity()
|
boolean |
isRelativeToSecondObject()
getter for field relativeToSecondObject |
abstract boolean |
isRotationalAxis()
|
abstract boolean |
isTranslationalAxis()
|
void |
read(com.jme.util.export.JMEImporter im)
|
static Joint |
readJointFromInputCapsule(com.jme.util.export.InputCapsule inputCapsule)
|
abstract void |
setAvailableAcceleration(float value)
Change the force the joint motor can use to reach the desired velocity. |
abstract void |
setDesiredVelocity(float value)
Change the desired velocity. |
void |
setDirection(com.jme.math.Vector3f direction)
Sets the direction of this axis. |
abstract void |
setPositionMaximum(float value)
Change the largest allowed position. |
abstract void |
setPositionMinimum(float value)
Change the smallest allowed position. |
void |
setRelativeToSecondObject(boolean value)
setter for field relativeToSecondObject |
void |
write(com.jme.util.export.JMEExporter ex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jme.util.export.Savable |
|---|
getClassTag |
| Field Detail |
|---|
public static final java.lang.String DIRECTION_PROPERTY
public static final java.lang.String RELATIVE_TO_SECOND_OBJECT_PROPERTY
public static final java.lang.String JOINT_PROPERTY
public static final java.lang.String AVAILABLE_ACCELERATION_PROPERTY
public static final java.lang.String DESIRED_VELOCITY_PROPERTY
public static final java.lang.String POSITION_MAXIMUM_PROPERTY
public static final java.lang.String POSITION_MINIMUM_PROPERTY
| Method Detail |
|---|
public Joint getJoint()
public abstract boolean isTranslationalAxis()
public abstract boolean isRotationalAxis()
public void setDirection(com.jme.math.Vector3f direction)
direction - new direction in world coordinate space if the joint is attached to the world, object coordinate
space if attached to two objectsisRelativeToSecondObject()public com.jme.math.Vector3f getDirection(com.jme.math.Vector3f store)
store - where to store the direction (null to create a new vector)
public abstract float getPosition()
public abstract float getVelocity()
public abstract void setAvailableAcceleration(float value)
value - new acceleration than can be usedsetDesiredVelocity(float)public abstract float getAvailableAcceleration()
setAvailableAcceleration(float)public abstract void setDesiredVelocity(float value)
value - new desired linear velocitysetAvailableAcceleration(float)public abstract float getDesiredVelocity()
setDesiredVelocity(float)public abstract void setPositionMinimum(float value)
value - smallest allowed position, Float.NEGATIVE_INFINITY to disable minimumpublic abstract float getPositionMinimum()
Float.NEGATIVE_INFINITY if minimum is disabledpublic abstract void setPositionMaximum(float value)
value - largest allowed position, Float.POSITIVE_INFINITY to disable maximumpublic abstract float getPositionMaximum()
Float.POSITIVE_INFINITY if maximum is disabledpublic void copy(JointAxis toCopy)
toCopy - where to read values frompublic boolean isRelativeToSecondObject()
public void setRelativeToSecondObject(boolean value)
value - new value
public void read(com.jme.util.export.JMEImporter im)
throws java.io.IOException
read in interface com.jme.util.export.Savablejava.io.IOException
public void write(com.jme.util.export.JMEExporter ex)
throws java.io.IOException
write in interface com.jme.util.export.Savablejava.io.IOException
public static Joint readJointFromInputCapsule(com.jme.util.export.InputCapsule inputCapsule)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||