A circle shape.
Creates a new circle shape.
Circle radius.
Given a transform, compute the associated axis aligned bounding box for this shape.
Calculated AABB, this argument is out
.
Transform to calculate the AABB.
Compute the mass properties of this shape using its dimensions and density. The inertia tensor is computed about the local origin, not the centroid.
Calculate the mass, this argument is out
.
Compute the volume and centroid of this shape intersected with a half plane
The surface normal.
The surface offset along the normal.
The shape transform.
The centroid, this argument is out
.
number
Copies the circle shape.
Copy of this circle shape.
Get the local position of this circle in its parent body.
This circle's local position.
Get the radius of the circle.
number
This circle's radius.
Get the type of this shape. You can use this to down cast to the concrete shape.
number
Cast a ray against this shape.
Ray cast results, this argument is out
.
Ray cast input parameters.
The transform to be applied to the shape.
boolean
True if the ray hits the shape, otherwise false.
Set the circle shape values from another shape.
The other circle shape to copy values from.
Set the local position of this circle in its parent body.
The new local position of this circle.
Set the radius of the circle.
The new radius of the circle.
Test a point for containment in this shape. This only works for convex shapes.
Shape world transform.
Point to test against, in world coordinates.
boolean
True if the point is in this shape, otherwise false.