The axis-aligned bounding box of the shape.
The area of the shape.
A body to which the shape is attached.
The density of the shape.
A collision filter of the shape
The friction of shape. Must be in range 0...Infinity.
An id of the body
The moment of inertia of the shape.
A flag that indicates whether a body is a sensor. Sensors does not react with other bodies but triggers collision events.
The mass of the shape.
Current position of the shape.
A rounding radius of the shape(radius of circle, radius of capsule, ...).
The restitution(elasticity) of the shape. Must be in range 0...1. A value of 0 means that the body will not bounce at all. A value of 1 means that the body may bounce with 100% of its kinetic energy.
The surface velocity of the shape. Useful for creating conveyor belts.
A type of the shape.
A variable that contains user data
Returns true if the shape contains the given point.
Returns the point of the shape with the given index.
Rotates the shape by the given angle.
Translates the shape by the given vector.
Updates the aabb of the shape.
Updates the area of the shape.
Updates the inertia of the shape.
Generated using TypeDoc
The shapes describe geometry of the body, you can add many shapes to the body.