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