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