|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.collision.shapes.ShapeDef
org.jbox2d.collision.shapes.EdgeChainDef
public class EdgeChainDef
Field Summary |
---|
Fields inherited from class org.jbox2d.collision.shapes.ShapeDef |
---|
density, filter, friction, isSensor, restitution, type, userData |
Constructor Summary | |
---|---|
EdgeChainDef()
|
Method Summary | |
---|---|
void |
addVertex(Vec2 newV)
Add a vertex to the chain. |
int |
getVertexCount()
Get the number of vertices in the chain. |
List<Vec2> |
getVertices()
Return the raw vertex list. |
boolean |
isLoop()
Is the chain a closed loop? If so, an extra edge will be created between the first and last vertices. |
void |
setIsLoop(boolean isLoop)
Set whether an extra edge should be created between first and last vertices. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EdgeChainDef()
Method Detail |
---|
public void addVertex(Vec2 newV)
newV
- public int getVertexCount()
public boolean isLoop()
public void setIsLoop(boolean isLoop)
isLoop
- True if the chain should be a closed looppublic List<Vec2> getVertices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |