Guest User

Untitled

a guest
Dec 11th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public void set (Vector2[] vertices) {
  2. Vec2[] v = new org.jbox2d.common.Vec2[vertices.length];
  3. for (int i = 0; i < v.length; i++) {
  4. v[i] = new Vec2(vertices[i].x, vertices[i].y);
  5. }
  6. shape.set(v, v.length);
  7. }
  8.  
  9. /**
  10. * The maximum number of vertices on a convex polygon.
  11. */
  12. public static int maxPolygonVertices = 8;
Add Comment
Please, Sign In to add comment