Package com.xebisco.yield.physics.joints
Class Joint2D
java.lang.Object
com.xebisco.yield.AbstractBehavior
com.xebisco.yield.ComponentBehavior
com.xebisco.yield.physics.joints.Joint2D
- All Implemented Interfaces:
Behavior,Renderable,Closeable,AutoCloseable
- Direct Known Subclasses:
DistanceJoint2D,RevoluteJoint2D
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jbox2d.dynamics.joints.Jointb2Joint()body1()body2()booleanabstract org.jbox2d.dynamics.joints.JointDefvoidonCreate()Called when the behavior is created.voidonStart()Called when the entity starts.setB2Joint(org.jbox2d.dynamics.joints.Joint b2Joint) setBody1(PhysicsBody body1) setBody2(PhysicsBody body2) setCollideConnected(boolean collideConnected) Methods 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
-
Joint2D
public Joint2D()
-
-
Method Details
-
onCreate
public void onCreate()Description copied from class:ComponentBehaviorCalled when the behavior is created.- Overrides:
onCreatein classComponentBehavior
-
createJoint
public abstract org.jbox2d.dynamics.joints.JointDef createJoint() -
onStart
public void onStart()Description copied from class:ComponentBehaviorCalled when the entity starts.- Specified by:
onStartin interfaceBehavior- Overrides:
onStartin classComponentBehavior
-
body1
-
setBody1
-
body2
-
setBody2
-
b2Joint
public org.jbox2d.dynamics.joints.Joint b2Joint() -
setB2Joint
-
collideConnected
public boolean collideConnected() -
setCollideConnected
public Joint2D setCollideConnected(boolean collideConnected) throws OnlyModifiableBeforeCreationException
-