⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Ray.Closest

Vec3 Closest(Vec3 to)

Calculates the point on the Ray that’s closest to the given point! This will be clamped if the point is behind the ray’s origin.

   
Vec3 to Any point in the same coordinate space as the Ray.
RETURNS: Vec3 The point on the ray that’s closest to the given point.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!