- Home /
Question by
krispastas · Jan 04, 2021 at 08:53 AM ·
fpsmouselook
FPS mouse look script for a space game
So i want a mouse look script for a space game, where you can rotate in any direction without gimbal lock - the world doesn't have an 'up' direction. I don't really have an idea how to do this, I think I should probably use quaternions. Any help appreciated.
Comment
Best Answer
Answer by krispastas · Jan 04, 2021 at 10:23 AM
Ok, i got it.
transform.localRotation *= Quaternion.Euler(-GetMouseY(), GetMouseX(), 0);
Your answer
Follow this Question
Related Questions
How do I use the IKsystem to make a humanoid's arms move with the Camera? 0 Answers
I Want to change ,y sensibility on my MouseLook script 1 Answer
my gun is stuck out of view when I click play 1 Answer
MouseLook won't work in Windows (Parallels) 3 Answers
Mecanim - making a character turn his torso towards mouse with animation 0 Answers