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.
True if the shape contains the given point
Returns position of the shape.
Position of the shape
Shape hasn't method 'rotate'.
Translates the shape by the given vector.
Updates the aabb of the shape.
The aabb
Updates the area of the shape.
The area
Updates the inertia of the shape.
The inertia
Generated using TypeDoc
The axis-aligned bounding box of the shape.