The result of narrow-phase collision detection. This is used for generating contact points of a contact constraint at once or incrementally.

Constructor

new()

Default constructor.

Variables

incremental:Bool

Whether the result points are to be used for incremental menifold update.

normal:Vec3

The normal vector of the contact plane.

numPoints:Int

The number of the result points.

points:Vector<DetectorResultPoint>

The result points. Note that only the first DetectorResult.numPoints points are computed by the collision detector.

Methods

inlineclear():Void

Cleans up the result data.

getMaxDepth():Float

Returns the maximum depth of the result points. Returns 0.0 if no result points are available.