Package net.dermetfan.gdx.physics.box2d
Class WorldObserver.PrismaticJointChange
java.lang.Object
net.dermetfan.gdx.physics.box2d.WorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>
net.dermetfan.gdx.physics.box2d.WorldObserver.PrismaticJointChange
- All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable
,WorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>
- Enclosing class:
- WorldObserver
public static class WorldObserver.PrismaticJointChange extends WorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>
the changes of a
PrismaticJoint
- Since:
- 0.7.1
-
Field Summary
Fields Modifier and Type Field Description java.lang.Float
newLowerLimit
java.lang.Float
newMaxMotorForce
java.lang.Float
newMotorSpeed
java.lang.Float
newUpperLimit
Fields inherited from class net.dermetfan.gdx.physics.box2d.WorldObserver.JointChange
newUserData
-
Constructor Summary
Constructors Constructor Description PrismaticJointChange()
-
Method Summary
Modifier and Type Method Description void
apply(com.badlogic.gdx.physics.box2d.joints.PrismaticJoint joint)
<C extends WorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>>
booleannewValuesEqual(C other)
if the values applied inWorldObserver.Change.apply(Object)
equalvoid
reset()
boolean
update(com.badlogic.gdx.physics.box2d.joints.PrismaticJoint joint)
Methods inherited from class net.dermetfan.gdx.physics.box2d.WorldObserver.JointChange
obtainFor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
newLowerLimit
public java.lang.Float newLowerLimit -
newUpperLimit
public java.lang.Float newUpperLimit -
newMaxMotorForce
public java.lang.Float newMaxMotorForce -
newMotorSpeed
public java.lang.Float newMotorSpeed
-
-
Constructor Details
-
PrismaticJointChange
public PrismaticJointChange()
-
-
Method Details
-
update
public boolean update(com.badlogic.gdx.physics.box2d.joints.PrismaticJoint joint)- Specified by:
update
in interfaceWorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>
- Overrides:
update
in classWorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>
- 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.PrismaticJoint joint)- Specified by:
apply
in interfaceWorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>
- Overrides:
apply
in classWorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>
- 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.PrismaticJoint>> boolean newValuesEqual(C other)Description copied from interface:WorldObserver.Change
if the values applied inWorldObserver.Change.apply(Object)
equal- Specified by:
newValuesEqual
in interfaceWorldObserver.Change<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>
- Overrides:
newValuesEqual
in classWorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>
-
reset
public void reset()- Specified by:
reset
in interfacecom.badlogic.gdx.utils.Pool.Poolable
- Overrides:
reset
in classWorldObserver.JointChange<com.badlogic.gdx.physics.box2d.joints.PrismaticJoint>
-