RayResult

nape.geom.RayResult (final 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 Members

@private


nape
normal: Vec2

The normal of the surface at intersection.


nape
distance: Float

The distance to the intersection.


nape
inner: Bool

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


The shape which was intersected.


nape
dispose(): Void

Release RayResult object to pool.


nape
toString(): String

@private

Returns
String

nape
new(): Void

@private

Private Members

Metadata

Name Parameters
:final -