Question by
RayCastX · Jun 14, 2016 at 10:14 PM ·
quaterniondirectionledge
face forward if direction is going right
I'm trying to create a dynamic ledge script.
What i want to achieve is this.
the red arrow is the direction of movement.. i want the character to face towards the cube.
how do i achieve this?

wew.png
(4.4 kB)
Comment
Answer by cjdev · Jun 14, 2016 at 11:04 PM
You can use the character's transform and take the negative of the transform.right vector.
Your answer
Follow this Question
Related Questions
Character rotation on ledge hanging 0 Answers
Using Quaternion orientation with a direction vector 1 Answer
The direction my camera is rotating should indicate the direction my object facing 0 Answers
Determining if my target is standing upright 4 Answers
How can I find direction with known 2 projection angles on xz and yz planes? 2 Answers