- Home /
Why won't my character look up?
My character is a sphere. The sphere has a texture so I can tell if it's rotating. He has a Physics Character Motor, FPS Character Controller, and Mouse Look Character Controller (MLCC). I can move forwards and turn and strafe. However, I cannot look up or down. As far as I can tell this is handled in MLCC. And as far as I can tell, MLCC is setting the motor.desiredFacingDirection with correct rotation in order to look up or down. I can tell by drawing the vector it is setting:
motor.desiredFacingDirection = originalRotation * xQuaternion * yQuaternion * Vector3.forward;
Debug.DrawLine (Vector3.zero, motor.desiredFacingDirection, Color.red);
So something is overriding the X rotation but not Y axis rotation. Any ideas?
What's the hierarchy of the character like? Are these scripts attached directly to the sphere, or is the sphere a visual child proxy of the actual game character object?
have you been meddling with the values of your rotation quaternion? If so you should REALLY REALLY know what you are doing. It's a group of hypercomplex numbers wrapped around in matrices. It doesn't take any luck what-so-ever to mess up what goes on internally in quaternions.
Answer by Daniel Girgis · Nov 04, 2010 at 07:57 AM
add the mouse look script to ure character and set it on x axis then add mouse look script to camera and make it y axis.
Your answer
Follow this Question
Related Questions
smooth raycast LookAt ? 1 Answer
Problem with Movement Script 0 Answers
Unity Android Movement Problem 0 Answers
Third Person MMO Controler 2 Answers
Mouse Click Animation 3 Answers