A convex hull collision geometry. A convex hull of the vertices is the smallest convex polyhedron which contains all vertices.

Constructor

new(vertices:Array<Vec3>)

Creates a convex hull collision geometry of the vertices vertices.

Methods

inlinegetVertices():Vector<Vec3>

Returns the vertices of the convex hull.

Inherited Variables

Inherited Methods

Defined by ConvexGeometry

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.

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.