Method | Description | |
---|---|---|
Clone ( ) : |
* /// Compute the volume and centroid of this shape intersected with a half plane * ///
|
|
ComputeAABB ( AABB aabb, |
Given a transform, compute the associated axis aligned bounding box for a child shape.
|
|
ComputeMass ( |
Compute the mass properties of this shape using its dimensions and density. The inertia tensor is computed about the local origin.
|
|
Raycast ( RayCastOutput output, RayCastInput input, |
Cast a ray against a child shape.
|
|
TestPoint ( |
Test a point for containment in this shape. This only works for convex shapes.
|
Method | Description | |
---|---|---|
Shape ( ShapeType type ) : Box2D.Common |
public abstract ComputeAABB ( AABB aabb, |
||
aabb | AABB | returns the axis aligned box. |
xf | the world transform of the shape. | |
childIndex | int | |
return | void |
public abstract ComputeMass ( |
||
massData | returns the mass data for this shape. | |
density | float | the density in kilograms per meter squared. |
return | void |
public abstract Raycast ( RayCastOutput output, RayCastInput input, |
||
output | RayCastOutput | the ray-cast results. |
input | RayCastInput | the ray-cast input parameters. |
transform | the transform to be applied to the shape. | |
childIndex | int | the child shape index |
return | bool |
protected Shape ( ShapeType type ) : Box2D.Common | ||
type | ShapeType | |
return | Box2D.Common |
public abstract TestPoint ( |
||
xf | the shape world transform. | |
p | a point in world coordinates. | |
return | bool |