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