Abstract collision geometry.

Methods

inlinegetType():Int

Returns the type of the collision geometry.

See GeometryType for details.

inlinegetVolume():Float

Returns the volume of the collision geometry.

rayCast(begin:Vec3, end:Vec3, transform:Transform, hit:RayCastHit):Bool

Performs ray casting. Returns true and sets the result information to hit if the line segment from begin to end and the geometry transformed by transform intersect. Returns false if the line segment and the geometry do not intersect.