Class EdgeCollider2D
java.lang.Object
com.xebisco.yield.AbstractBehavior
com.xebisco.yield.ComponentBehavior
com.xebisco.yield.physics.colliders.Collider2D
com.xebisco.yield.physics.colliders.EdgeCollider2D
- All Implemented Interfaces:
Behavior,Renderable,Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jbox2d.collision.shapes.ShapecreateShape(double ppm) point1()point2()voidupdateShape(org.jbox2d.collision.shapes.Shape shape, double ppm) Methods inherited from class com.xebisco.yield.physics.colliders.Collider2D
collisionMask, density, excludedMasks, friction, restitution, setCollisionMask, setDensity, setExcludedMasks, setFriction, setRestitutionMethods inherited from class com.xebisco.yield.ComponentBehavior
application, close, component, component, entity, onCreate, onLateUpdate, onStart, onUpdate, render, renderIndex, setEntity, setRenderIndex, texture, texture, transformMethods inherited from class com.xebisco.yield.AbstractBehavior
frames, tick
-
Constructor Details
-
EdgeCollider2D
public EdgeCollider2D()
-
-
Method Details
-
createShape
public org.jbox2d.collision.shapes.Shape createShape(double ppm) - Specified by:
createShapein classCollider2D
-
updateShape
public void updateShape(org.jbox2d.collision.shapes.Shape shape, double ppm) - Specified by:
updateShapein classCollider2D
-
point1
-
setPoint1
-
point2
-
setPoint2
-