End location of a Raycast

Hi,

Is there a way to get the coordinates of a Raycast?

I’m sending a raycast from the camera with a distance of 100. I want to get the world coordinates of the end of the Ray.

Anyone that can point me in the right direction?

Thanks!

Ray.GetPoint should be all you need:

Heck, if you’ve got the origin and direction for the ray, you could just do this:

var endPoint : Vector3 = origin + direction.normalized * distance;

Assuming that origin and direction are Vector3s and distance is an integer or float.

Thanks KaelisAsur and GargerathSunman, I will try that!