Hello. I’m writing a server gun firing script to prevent exploits in an fps game. So, I need to obtain the camera direction from the server and raycast.
The player sends the vertical angle of the camera to the server every frame.
And I can get player’s camera rotation. but I need the directional vector for raycasting.
I searched for it, but I could only get orientation from a directional vector and not the opposite.
How to get directional vector? are there any ways?