public static class WorldObserver.PrismaticJointChange extends WorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>
PrismaticJoint| Modifier and Type | Field and Description |
|---|---|
java.lang.Float |
newLowerLimit |
java.lang.Float |
newMaxMotorForce |
java.lang.Float |
newMotorSpeed |
java.lang.Float |
newUpperLimit |
private float |
oldLowerLimit |
private float |
oldMaxMotorTorque |
private float |
oldMotorSpeed |
private float |
oldUpperLimit |
newUserData, userDataChanged| Constructor and Description |
|---|
PrismaticJointChange() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(com.badlogic.gdx.physics.box2d.joints.PrismaticJoint joint) |
<C extends WorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>> |
newValuesEqual(C other)
if the values applied in
WorldObserver.Change.apply(Object) equal |
void |
reset() |
boolean |
update(com.badlogic.gdx.physics.box2d.joints.PrismaticJoint joint) |
obtainForprivate transient float oldLowerLimit
private transient float oldUpperLimit
private transient float oldMaxMotorTorque
private transient float oldMotorSpeed
public java.lang.Float newLowerLimit
public java.lang.Float newUpperLimit
public java.lang.Float newMaxMotorForce
public java.lang.Float newMotorSpeed
public boolean update(com.badlogic.gdx.physics.box2d.joints.PrismaticJoint joint)
update in interface WorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>update in class WorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>joint - the object to check for changes since the last time this method was calledpublic void apply(com.badlogic.gdx.physics.box2d.joints.PrismaticJoint joint)
apply in interface WorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>apply in class WorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>joint - the object to apply the changes since WorldObserver.Change.update(Object) topublic <C extends WorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>> boolean newValuesEqual(C other)
WorldObserver.ChangeWorldObserver.Change.apply(Object) equalnewValuesEqual in interface WorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>newValuesEqual in class WorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolablereset in class WorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>