Is it possible?
Like in the WOW game, if user input Q+W key, character move to 10 clock’s direction, but head is faced to 12 clock.
Is this animation movement possible by script? or need to make another?
Is it possible?
Like in the WOW game, if user input Q+W key, character move to 10 clock’s direction, but head is faced to 12 clock.
Is this animation movement possible by script? or need to make another?
I am not sure if this will work, but you can try iTween: http://itween.pixelplacement.com/
Download it there, and once you put iTween.js inside of your project folder, try entering this script in the desired location:
var head : GameObject;
iTween.rotateBy(head,{“y”:enter desired amount here});
The “y” is the axis that the head rotates by. change it if you need to.
Yup! And you can also use iTween’s lookTo or rotateTo as well! Good luck!
One other thing; you could also use lookToUpdate to have the head constantly look at a target smoothly.
Hi.
I tried with iTween now (though long time passed…), but met errors, (unity3.0)
(I did)
if(Input.GetButton(“1”))
iTween.rotateBy(head, {“y”:30.0});
(error)
BCE0004: Ambiguous reference ‘iTween’: iTween, iTween.
What is wrong?
Using iTween 2.0.27(latest)
Hi.
I tried with iTween now (though long time passed…), but met errors, (unity3.0)
(I did)
if(Input.GetButton(“1”))
iTween.rotateBy(head, {“y”:30.0});
(error)
BCE0004: Ambiguous reference ‘iTween’: iTween, iTween.
What is wrong?
Using iTween 2.0.27(latest)