chickadee » physics » create-polygon-shape

create-polygon-shape body vertices offset #!optional radiusprocedure

body is the body to attach the poly to, vertices is an list of vectors defining a convex hull with a clockwise winding, offset is the offset from the body’s center of gravity in body local coordinates. An assertion will be thrown the vertexes are not convex or do not have a clockwise winding.