Class representing the results of a ray cast operation.

These objects are allocated from an object pool and can be released back to that pool by calling its dispose method.

Constructor

new()

@private

Variables

read onlydistance:Float

The distance to the intersection.

read onlyinner:Bool

Whether this intersection is with the inner surface of an object.

read onlynormal:Vec2

The normal of the surface at intersection.

read onlyshape:Shape

The shape which was intersected.

@:value(null)zpp_inner:ZPP_ConvexRayResult = null

@private

Methods

inlinedispose():Void

Release RayResult object to pool.

@:keeptoString():String

@private