playMaker

Author Topic: Rotate Rigidbody 2D towards velocity directions?  (Read 1875 times)

RC

  • Full Member
  • ***
  • Posts: 148
Rotate Rigidbody 2D towards velocity directions?
« on: December 01, 2014, 11:13:10 AM »
Hi,
Can some help me with this.
I'm trying to setup my enemies to walk towards the player facing the same direction that is walking. I have tried few actions, lookat2d and smooth look at 2d.

Both rotate using Z axis, I'm looking to rotate Y axis.

Any help would be appreciated. Thanks!

jasperPT

  • Full Member
  • ***
  • Posts: 115
  • I am a VFX Animator teaching myself to make games
Re: Rotate Rigidbody 2D towards velocity directions?
« Reply #1 on: December 03, 2014, 09:03:15 AM »
Try this out, it works for me and sounds like what you need:

http://hutonggames.com/playmakerforum/index.php?topic=6634.msg32381#msg32381