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.
Array of lengths of the edges of the shape.
The mass of the shape.
Array of normals 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
Array of vertices of the shape.
Returns true if the shape contains the given point.
True if the shape contains the given point
Returns the point of the shape with given index.
The point of the shape with given index
Returns index of the farthest vertex of convex in the given direction.
Index of the farthest vertex of convex in the given direction
Rotates the shape by the given angle.
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 centroid of the shape.
Updates the inertia of the shape.
The inertia
Generated using TypeDoc
The 'Convex' is convex polygon. The 'Convex' is described by the set of points.