Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void set (Vector2[] vertices) {
- Vec2[] v = new org.jbox2d.common.Vec2[vertices.length];
- for (int i = 0; i < v.length; i++) {
- v[i] = new Vec2(vertices[i].x, vertices[i].y);
- }
- shape.set(v, v.length);
- }
- /**
- * The maximum number of vertices on a convex polygon.
- */
- public static int maxPolygonVertices = 8;
Add Comment
Please, Sign In to add comment