nape.geom.RayResult

type
class
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 Properties

readonly var distance : Float

The distance to the intersection.

readonly var inner : Bool

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

readonly var normal : Vec2

The normal of the surface at intersection.

readonly var shape : nape.shape.Shape

The shape which was intersected.

Instance Methods

inline function dispose():Void

Release RayResult object to pool.