I have been using Camera.ScreenPointToRay() for so long and I wonder…how do I change the direction of the casted ray?
example:
I know that I can use Ray (origin, direction) but, using this method the raycaster sometimes can clip through other objects.
You couldnot change the direction of casted ray, ray always cast from Z axis so change the position of Z axis and write a code for it and yes i don`t understand your question clearly clarify your question more.