org.jbox2d.collision
Class PolygonDef

java.lang.Object
  extended by org.jbox2d.collision.ShapeDef
      extended by org.jbox2d.collision.PolygonDef

public class PolygonDef
extends ShapeDef


Field Summary
 java.util.List<Vec2> vertices
           
 
Fields inherited from class org.jbox2d.collision.ShapeDef
categoryBits, density, friction, groupIndex, isSensor, maskBits, restitution, type, userData
 
Constructor Summary
PolygonDef()
           
 
Method Summary
 void setAsBox(float hx, float hy)
           
 void setAsBox(float hx, float hy, Vec2 center, float angle)
           
 int vertexCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertices

public java.util.List<Vec2> vertices
Constructor Detail

PolygonDef

public PolygonDef()
Method Detail

setAsBox

public void setAsBox(float hx,
                     float hy)

setAsBox

public void setAsBox(float hx,
                     float hy,
                     Vec2 center,
                     float angle)

vertexCount

public int vertexCount()