- Home /
Mixing mecanim movement with script rotation problem
Hi i was wondering if my rotate script doesnt work becouse of mecanim or is there some way of mixing mecanim movement with sript movment becouse when i use mouseposition to activate rotation animation well .... the transitions are not smooth (i use raw mecanim data from assets store)
rotateSensivity *= Time.deltaTime;
Quaternion rotation = Quaternion.Euler(new Vector3(0, Input.GetAxis("Mouse X") * rotateSensivity, 0));
rigidbody.MoveRotation (rotation);
it not working and it shoud shoudn't it ?
Comment
Best Answer
Answer by Pawscal · May 13, 2014 at 09:17 PM
To add a rotation with a script to an animated object i would instinctively parent the animated object to a Empty GO and drive the rotation from the parent. Hope it helps, good luck!
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Navigating the 3D platform 0 Answers