Class CastResultInterface

Properties

entity: Entity

Entity that the cast has detected.

fraction: number

Contact fraction. This is a normalized length (0-1 range) along the cast's path from start to end where the contact has been detected.

normal: null | Vec3 = null

Contact normal will be included only if the query options requested to calculate contact normal. Otherwise it will be null (default).

point: Vec3

Cast result world point.