|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.odejava.Joint
org.odejava.JointSlider
public class JointSlider
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 | |
|---|---|
JointSlider(String name,
World world)
Create a new Slider joint that belongs to the given world and has a name. |
|
JointSlider(String name,
World world,
JointGroup jointGroup)
Create a new slider joint that belongs to the given world. |
|
JointSlider(World world)
Create a new Slider joint that belongs to the given world and does not belong to any group. |
|
JointSlider(World world,
JointGroup jointGroup)
Create a new slider joint that belongs to the given world. |
|
| Method Summary | |
|---|---|
org.openmali.vecmath2.Vector3f |
getAxis()
Get the axis vector for the slide. |
org.openmali.vecmath2.Vector3f |
getAxis(org.openmali.vecmath2.Vector3f val)
Get the axis vector for the slider and place it in the user-provided data structure. |
float |
getConstantForceMix()
Get the amount of the constant force mix parameter currently set for positions between the two stops. |
float |
getMaximumPosition()
Get the current maxiumum separation permitted between the two bodies. |
float |
getMinimumPosition()
Get the current miniumum separation permitted between the two bodies. |
float |
getParam(int parameter)
Get an unchecked parameter value directly from this joint. |
float |
getPosition()
Fetch the current separation distance between the two bodies. |
float |
getPositionRate()
Fetch the current rate of separation between the two bodies. |
float |
getStopBounce()
Get the amount of stop bounce currently set. |
float |
getStopCFM()
Get the amount of the stop constant force mix parameter currently set. |
float |
getStopERP()
Get the amount of the stop error reduction parameter currently set. |
void |
setAxis(float x,
float y,
float z)
Deprecated. use setAxis1 instead |
void |
setAxis1(float x,
float y,
float z)
|
void |
setConstantForceMix(float force)
Set the amount of constant force to mix into the system when the bodies are not at a stop. |
void |
setMaximumPosition(float distance)
Set the maximum separation allowable between the two bodies. |
void |
setMinimumPosition(float distance)
Set the minimum separation allowable between the two bodies. |
void |
setParam(int parameter,
float value)
Set a generic, unchecked, parameter directly for this joint. |
void |
setStopBounce(float bounce)
Set the amount of stop bounce. |
void |
setStopCFM(float force)
Set the amount of stop constant force to mix into the system when the bodies reach a stop. |
void |
setStopERP(float erp)
Set the amount of stop bounce error reduction. |
| Methods inherited from class org.odejava.Joint |
|---|
attach, delete, enableFeedbackTracking, enableFeedbackTracking, getBody1, getBody2, getFeedback, getGroup, getName, isFeedbackTrackingEnabled, setAxis2, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JointSlider(World world)
world - The world that this belongs to
public JointSlider(String name,
World world)
name - A label string to associate with this jointworld - The world that this belongs to
public JointSlider(World world,
JointGroup jointGroup)
world - The world that this belongs tojointGroup - An optional group to associate this joint with
public JointSlider(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 setAxis1(float x,
float y,
float z)
setAxis1 in class Joint
@Deprecated
public void setAxis(float x,
float y,
float z)
x - y - z - public org.openmali.vecmath2.Vector3f getAxis()
getAxis(null).
public org.openmali.vecmath2.Vector3f getAxis(org.openmali.vecmath2.Vector3f val)
val - An object to place the values into or null
public float getPosition()
public float getPositionRate()
public void setMaximumPosition(float distance)
distance - The maximum separation permitted between bodiespublic float getMaximumPosition()
public void setMinimumPosition(float distance)
distance - The minimum separation permitted between bodiespublic float getMinimumPosition()
public void setConstantForceMix(float force)
force - The amount of force to usepublic float getConstantForceMix()
public void setStopBounce(float bounce)
throws IllegalArgumentException
bounce - The amount of bounce to use in the range [0,1]
IllegalArgumentException - The bounce factor is out of rangepublic float getStopBounce()
public void setStopERP(float erp)
erp - The amount of error reduction to usepublic float getStopERP()
public void setStopCFM(float force)
force - The amount of force to usepublic float getStopCFM()
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 | ||||||||