Package net.dermetfan.gdx.physics.box2d
Class WorldObserver.WeldJointChange
java.lang.Object
net.dermetfan.gdx.physics.box2d.WorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.WeldJoint>
net.dermetfan.gdx.physics.box2d.WorldObserver.WeldJointChange
- All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable,WorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.WeldJoint>
- Enclosing class:
- WorldObserver
public static class WorldObserver.WeldJointChange extends WorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.WeldJoint>
the changes of a
WeldJoint- Since:
- 0.7.1
-
Field Summary
Fields Modifier and Type Field Description java.lang.FloatnewDampingRatiojava.lang.FloatnewFrequencyFields inherited from class net.dermetfan.gdx.physics.box2d.WorldObserver.JointChange
newUserData -
Constructor Summary
Constructors Constructor Description WeldJointChange() -
Method Summary
Modifier and Type Method Description voidapply(com.badlogic.gdx.physics.box2d.joints.WeldJoint joint)<C extends WorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.WeldJoint>>
booleannewValuesEqual(C other)if the values applied inWorldObserver.Change.apply(Object)equalvoidreset()booleanupdate(com.badlogic.gdx.physics.box2d.joints.WeldJoint joint)Methods inherited from class net.dermetfan.gdx.physics.box2d.WorldObserver.JointChange
obtainForMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
newDampingRatio
public java.lang.Float newDampingRatio -
newFrequency
public java.lang.Float newFrequency
-
-
Constructor Details
-
WeldJointChange
public WeldJointChange()
-
-
Method Details
-
update
public boolean update(com.badlogic.gdx.physics.box2d.joints.WeldJoint joint)- Specified by:
updatein interfaceWorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.WeldJoint>- Overrides:
updatein classWorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.WeldJoint>- Parameters:
joint- the object to check for changes since the last time this method was called- Returns:
- if anything changed
-
apply
public void apply(com.badlogic.gdx.physics.box2d.joints.WeldJoint joint)- Specified by:
applyin interfaceWorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.WeldJoint>- Overrides:
applyin classWorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.WeldJoint>- Parameters:
joint- the object to apply the changes sinceWorldObserver.Change.update(Object)to
-
newValuesEqual
public <C extends WorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.WeldJoint>> boolean newValuesEqual(C other)Description copied from interface:WorldObserver.Changeif the values applied inWorldObserver.Change.apply(Object)equal- Specified by:
newValuesEqualin interfaceWorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.WeldJoint>- Overrides:
newValuesEqualin classWorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.WeldJoint>
-
reset
public void reset()- Specified by:
resetin interfacecom.badlogic.gdx.utils.Pool.Poolable- Overrides:
resetin classWorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.WeldJoint>
-