Hello,
I would like to add a bonus rotating for a joint. Bonus means that the joint si rotating by model animaton, but I would like to insert the mouselook by scripts. So If the player moving (imagine a TPS) it has a head animation for each axis. I use the MouseLook script, which causes a rotating around the Y-axis. How can I "mix" this rotation? If I use only the existing MouseLook, it disables the existed joint animations and I can rotate it around the Y axis. So I want to keep the joint rotatings from the model-animations. Here is the Update part:
rotationY += Input.GetAxis("Mouse Y") * sensitivityY;
rotationY = Mathf.Clamp (rotationY, minimumY, maximumY);
transform.localEulerAngles = new Vector3(-rotationY,0,0);
Thank you.
↧