- Home /
MouseLook character is acting wierd
Ok so here is my problem ... I have a model , i attached the script "MouseLook" from de unity asset on my character but if i attach the script to my character , the whole model moves with my mouse and if i attach it to the main camera, the character doesn t point the direction of the mouse.
Is there anything missing in the MouseLook script to be able to look everywhere like in FPS games?
I ve read many tuto, watched tons of video , wrote every code. But nothing seems to solve my problem.
Any suggestion?
Thanks
Answer by TheKusabi · Aug 25, 2013 at 02:45 PM
The way the Unity FPS Character does it, is to attach the script to both the player gameObject and the camera.
Using the inspectors, you can freeze certain axis. Allowing the player GameObject to rotate left and right, and the camera to move up and down.
This should create an FPS character with it's feet firmly on the ground.
Good Luck.
Since I can't vote yet Im just gonna say that your answer work :) +1 Good job and thanks
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
I have a movement script, but how can i make it so i can move half the speed while in the air. 0 Answers
Question on how to add a "dash" ability to sidescroller 0 Answers
Object moving on its own 0 Answers
How to disable A, S, and D keys for third person player movement 1 Answer