Maximum travel distance for raycasting queries. Defaults to Infinity.
Maximum travel distance for raycasting queries. Defaults to Infinity.
The ray's start point in world coordinates.
Arbitrary user data attached to this Ray.
Compute the axis-aligned bounding box that encloses the ray from origin to maxDistance.
A new AABB wrapping the ray's extent.
Return the world-space point at distance along the ray.
Distance from the ray origin along the ray direction.
If true, the returned Vec2 is a weak (pooled) reference.
The point origin + distance * normalised_direction.
Return a new Ray with the same origin, direction, and maxDistance. Alias for copy().
A new Ray with the same properties.
Return a new Ray with the same origin, direction, and maxDistance.
A deep copy of this Ray.
Staticfrom
A ray for raycasting queries.
Fully modernized — uses ZPP_Ray directly (extracted to TypeScript).