class nape.geom.RayResult

Available on all platforms

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.

Instance Fields

var distance:Float

The distance to the intersection.

var inner:Bool

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

var normal:Vec2

The normal of the surface at intersection.

var shape:Shape

The shape which was intersected.

function new():Void

@private

function dispose():Void

Release RayResult object to pool.

function toString():String

@private