API Reference

Class List

RaycastResult

Object holding the result of a successful raycast hit.

Summary

Properties

entity

The entity that was hit.

hitFraction

The normalized distance (between 0 and 1) at which the ray hit occurred from the starting point.

normal

The normal vector of the surface where the ray hit in world space.

point

The point at which the ray hit the entity in world space.

Details

Properties

Entityentity

The entity that was hit.

numberhitFraction

The normalized distance (between 0 and 1) at which the ray hit occurred from the starting point.

Vec3normal

The normal vector of the surface where the ray hit in world space.

Vec3point

The point at which the ray hit the entity in world space.