How to Raycast from a point in the sky to the ground

Hello,

Just as the question asks…

I know how to send a ray from a Camera input, but not quite sure on how it should be handled if you send a ray from a Vector3 (that will end up traveling to another vector3)

I’m planning on having a clicked Vector3 be checked for collisions by another Vector3 aligned in the exact same spot, with an offset Y of about 100-200. I have the rest of the code aside from the Ray which is currently null.

Thanks for any help with this!

A ray is simply an origin point and a direction. For example, if you had a game object up in the air and wanted to construct a ray looking down from that game object:

Ray ray = new Ray(transform.position, Vector3.down);

And then you can use this in a raycast. See Ray.Ray.