|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.physics.simulation.JointLimitMotor
public class JointLimitMotor
With JointLimitMotor limits can be attached to Joints,
but also motor-like behaviour.
If you want to use the limit functionality of JointLimitMotor,
you have to set lostop and histop.
If you want to use it as a motor, you have to set vel and fmax, where
vel is the speed to which the Joint should reach
fmax is the force that maximally can be applied to reach this target,
by default this is zero, so setting vel alone does not suffice.
Joints, where limits and motor functionality are possible have a field(s)
containing the JointLimitMotor, so as a user you won't have to call the
constructor yourself.
| Constructor Summary | |
|---|---|
protected |
JointLimitMotor(float defaultCFM,
float defaultERP)
creates a new JointLimitMotor You normally won't have to call this. |
| Method Summary | |
|---|---|
float |
getBounce()
|
float |
getFudgeFactor()
|
float |
getHighStop()
|
int |
getLimit()
variables used between getInfo1() and getInfo2() 0=free, 1=at lo limit, 2=at hi limit |
float |
getLimitError()
|
float |
getLowStop()
|
float |
getMaxForce()
|
float |
getNormalCFM()
|
float |
getStopCFM()
|
float |
getStopERP()
|
float |
getVelocity()
|
boolean |
isDirty()
|
void |
makeClean()
|
void |
setBounce(float bounce)
restitution factor |
void |
setFudgeFactor(float fudgeFactor)
when powering away from joint limits |
void |
setHighStop(float hiStop)
joint limit : hi stop (relative to initial) |
void |
setLimit(int limit)
variables used between getInfo1() and getInfo2() 0=free, 1=at lo limit, 2=at hi limit |
void |
setLimitError(float limitErr)
if at limit, amount over limit |
void |
setLowStop(float lowStop)
joint limit : lo stop (relative to initial) |
void |
setMaxForce(float maxForce)
powered joint : max force |
void |
setNormalCFM(float normalCFM)
cfm to use when not at a stop |
void |
setStopCFM(float stopCFM)
cfm for when at joint limit |
void |
setStopERP(float stopERP)
erp for when at joint limit |
void |
setVelocity(float velocity)
powered joint : velocity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JointLimitMotor(float defaultCFM,
float defaultERP)
defaultCFM - defaultERP - | Method Detail |
|---|
public final boolean isDirty()
public final void makeClean()
public final void setVelocity(float velocity)
velocity - public final float getVelocity()
public final void setMaxForce(float maxForce)
maxForce - public final float getMaxForce()
public final void setLowStop(float lowStop)
lowStop - public final float getLowStop()
public final void setHighStop(float hiStop)
hiStop - public final float getHighStop()
public final void setFudgeFactor(float fudgeFactor)
fudgeFactor - public final float getFudgeFactor()
public final void setNormalCFM(float normalCFM)
normalCFM - public final float getNormalCFM()
public final void setStopERP(float stopERP)
stopERP - public final float getStopERP()
public final void setStopCFM(float stopCFM)
stopCFM - public final float getStopCFM()
public final void setBounce(float bounce)
bounce - public final float getBounce()
public final void setLimit(int limit)
limit - public final int getLimit()
public final void setLimitError(float limitErr)
limitErr - public final float getLimitError()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||