Abstract class of the convex collision geometries supported by GJK/EPA collision detection.

Methods

computeLocalSupportingVertex(dir:Vec3, out:Vec3):Void

Computes supporting vertex of the "core" of the geometry in local coordinates. Note that the direction vector dir might not be normalized. out is set to the computed supporting vertex.

inlinegetGjkMergin():Float

Returns the GJK mergin around the "core" of the convex geometry.

inlinesetGjkMergin(gjkMergin:Float):Void

Sets the GJK mergin around the "core" to gjkMergin.

Inherited Variables

Inherited Methods

Defined by Geometry

inlinegetType():Int

Returns the type of the collision geometry.

See GeometryType for details.

inlinegetVolume():Float

Returns the volume of the collision geometry.