Class ChainShape
java.lang.Object
com.codename1.gaming.physics.box2d.collision.shapes.Shape
com.codename1.gaming.physics.box2d.collision.shapes.ChainShape
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voidcomputeAABB(AABB aabb, Transform xf, int childIndex) voidcomputeMass(MassData massData, float density) voidcreateChain(Vec2[] vertices, int count) voidcreateLoop(Vec2[] vertices, int count) intvoidgetChildEdge(EdgeShape edge, int index) booleanraycast(RayCastOutput output, RayCastInput input, Transform xf, int childIndex) voidsetNextVertex(Vec2 nextVertex) voidsetPrevVertex(Vec2 prevVertex) boolean
-
Field Details
-
m_vertices
-
m_count
public int m_count -
m_prevVertex
-
m_nextVertex
-
m_hasPrevVertex
public boolean m_hasPrevVertex -
m_hasNextVertex
public boolean m_hasNextVertex
-
-
Constructor Details
-
ChainShape
public ChainShape()
-
-
Method Details
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin classShape
-
getChildEdge
-
testPoint
-
raycast
-
computeAABB
- Specified by:
computeAABBin classShape
-
computeMass
- Specified by:
computeMassin classShape
-
clone
-
createLoop
-
createChain
-
setPrevVertex
-
setNextVertex
-