Package com.xebisco.yield.physics.joints
Class DistanceJoint2D
java.lang.Object
com.xebisco.yield.AbstractBehavior
com.xebisco.yield.ComponentBehavior
com.xebisco.yield.physics.joints.Joint2D
com.xebisco.yield.physics.joints.DistanceJoint2D
- All Implemented Interfaces:
Behavior,Renderable,Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jbox2d.dynamics.joints.JointDefdoubledoublesetDampingRatio(double dampingRatio) setFrequency(double frequency) Methods inherited from class com.xebisco.yield.physics.joints.Joint2D
b2Joint, body1, body2, collideConnected, onCreate, onStart, setB2Joint, setBody1, setBody2, setCollideConnectedMethods inherited from class com.xebisco.yield.ComponentBehavior
application, close, component, component, entity, onLateUpdate, onUpdate, render, renderIndex, setEntity, setRenderIndex, texture, texture, transformMethods inherited from class com.xebisco.yield.AbstractBehavior
frames, tick
-
Constructor Details
-
DistanceJoint2D
public DistanceJoint2D()
-
-
Method Details
-
createJoint
public org.jbox2d.dynamics.joints.JointDef createJoint()- Specified by:
createJointin classJoint2D
-
frequency
public double frequency() -
setFrequency
-
dampingRatio
public double dampingRatio() -
setDampingRatio
-