Demigiant / dotween

A Unity C# animation engine. HOTween v2
http://dotween.demigiant.com
Other
2.36k stars 350 forks source link

DOJump look at direction #432

Closed emrys90 closed 3 years ago

emrys90 commented 4 years ago

How would I go about having a DOJump rotate to face the direction its moving in?

Matthew-J-Spencer commented 3 years ago

I'd like to know also.

theroarer commented 3 years ago

I can't get this to work either.

Demigiant commented 3 years ago

There is no "lookAt" option in DOJump, but you could do it manually by chaining a SetUpdate method to your jump and using that to calculate the direction of your movement frame-by-frame, then "look at" the direction vector