- Home /
[RePost for No Answer] How to make a character look at the direction it's going towards
Hello! my name is Juan. I've had a question for a long time and I just realized how to rephrase it in such way that it'll be easier to understand. I want to make it so that when the character is in the air (I already got that figured out) i want it too be facing in the direction it is going in. kind of like the way an airplane faces in the direction it's going. I would really appreciate any answers, but if possible explain like I'm a 5 year old and in c#. Thanks in advance!
How are you handling the movement? Is it in a Vector3 value?
I'm Actually using rigidbody.addForce, so I'm thinking there's no way to make it predeter$$anonymous$$ed
hello @xXJuanXx, I might not understand your question properly. i think you want to find direction where player moving. so from here you can get that. direction or point where player move. so you can change character head direction according to that.
][1]
Answer by GameDev_Chuck · Jan 29, 2015 at 10:49 AM
Have you had a look at http://unity3d.com/learn/tutorials/modules/beginner/scripting/look-at ?
Hello! sorry it took me so long to reply. anyway, people have told me to use this, but I don't understand how to? i get this makes the player look at a certain object, but i don't understand how to make it look in the direction it's going in
Your answer