|
My aim is to get the character rotating left/righ when moving the cursor on the x axis, and the camera rotating up/down when moving the cursor on the y axis. I made the camera a child to my character and attached this code to the character.
At the moment the left/right rotation is working fine but the camera isn't rotating at all, and it's very fidgety for some reason. Would appreciate any tips.
(comments are locked)
|
|
It looks to me like you are creating a ray with the mouse position... is there any reason you didn't just use the mouse movement? It seems much simpler to just:
(comments are locked)
|
