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

@:value(null)zpp_inner:ZPP_ConvexRayResult = null

@private

read onlynormal:Vec2

The normal of the surface at intersection.

read onlydistance:Float

The distance to the intersection.

read onlyinner:Bool

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

read onlyshape:Shape

The shape which was intersected.

Methods

inlinedispose():Void

Release RayResult object to pool.

@:keeptoString():String

@private