The vertices of the shape in local space coordinates.
Keeps the original normals and vertices of this shape.
Readonly
typeUsed to determine what type of shape this is.
The vertices describing the shape.
Static
CircleStatic
POLYGONStatic
calcStatic
circleStatic
getStatic
getReturns the normals of the faces when rotated.
Optional
out: Vector2[] = []An array where results are stored.
Static
getStatic
lineStatic
rectangleStatic
triangleLength of one side.
Length of a second side.
The angle between the two sides.
Static
updateTransforms the local coordinates of the vertices to world coordinates.
The world position of the body.
The orientation of body.
The scale of the body.
This class makes a body tangible to collision detection and response.Without it,the body will not be able to interact with other bodies.