I am using a Raycast on a game object. I'd like the position and direction of the Raycast to update with the game object it's attached to (it will be used as a pointer). The position is simple enough but I don't understand how this works with direction and rotation.
Currently I have the direction set as 0, 0, 1, so the ray casts forward, how do I then get this to update with the rotation of the game object?
Thanks in advance!
Customer support service by UserEcho