A box collision geometry.

Constructor

new(halfExtents:Vec3)

Creates a box collision geometry of half-extents halfExtents.

Methods

inlinegetHalfExtents():Vec3

Returns the half-extents of the box.

inlinegetHalfExtentsTo(halfExtents:Vec3):Void

Sets halfExtents to the half-extents of the box.

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.