- Home /
This question was
closed Apr 29, 2013 at 07:16 AM by
Fattie for the following reason:
Duplicate Question
How to make a character look at the same direction it's moving? with c#
I've created a random function to determine the movement direction, but i don't know how to make my character look toward the same direction, i've tried LookAt(target) where target it's the variable of Vector3 of the random movement, but it moves weird
Comment
the target for LookAt needs to be a point somewhere ahead of your character. something like yourTargetPoint = yourCharacter'sPosition + theDirectionOf$$anonymous$$ovement
pls search first for 100s questions about this on here. if not, carefully post your formatted code, a screen shot, etc.
Follow this Question
Related Questions
Issue with direction and rigibody2D 1 Answer
facing an object 1 Answer
how to force enemy looat he moved? 1 Answer
How can I let my Sprite look towards the mouse in Unity 4.3 2D? 1 Answer