How can I find the World-Space coordinate from a raycast with a set distance, without hitting a collider?
Or : is there a proper way of finding a world space coordinate from a 2D input and a set distance from the camera? Example :
Player touches the screen or uses a mouse, either way the input is a screen coordinate.
Ray is cast at a distance of 10.0 :
if ( Physics.Raycast( Camera.main.ScreenPointToRay(Input.mousePosition), 10.0) ) {
even if there is no colliders, how can I get a return for the point that is at the end of the raycast? Thanks =]