|
I'm writting a script, cinsists of two components, the first one witches between player mouse control and my rotation script:
The second rotates the player around slowly:
My problem is, that even if all the scripts are working fine alone, thus i can "look around" and after pressing "r" mouse freezes, and the player slowly rotates around, BUT if i press the "r" button again, the camera moves back to the start position (it ignores the whole rotation procedure). How could i make this work? Thank You, Agoston Torok, HAS, Institute for Psychology
(comments are locked)
|
|
I solved it grrr, simply using a mouse look script instead of the builtin one: function Update () { var h = 15 * Input.GetAxis ("Mouse X"); transform.Rotate (0, h, 0); }
(comments are locked)
|
