The vertices of the shape in local space coordinates.
Keeps the original normals and vertices of this shape.
ReadonlytypeUsed to determine what type of shape this is.
The vertices describing the shape.
StaticCircleStaticPOLYGONStaticcalcStaticcircleStaticgetStaticgetReturns the normals of the faces when rotated.
Optionalout: Vector2[] = []An array where results are stored.
StaticgetStaticlineStaticrectangleStatictriangleLength of one side.
Length of a second side.
The angle between the two sides.
StaticupdateTransforms 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.