playMaker

Author Topic: How to make object always rotate towards another object?  (Read 3004 times)

Watcher

  • Playmaker Newbie
  • *
  • Posts: 2
How to make object always rotate towards another object?
« on: November 14, 2015, 12:58:09 PM »
I made a character that moves to a point on a terrain where player clicks with a mouse, but I can't make it rotate towards the empty (empty is placed on the clicked position and then character object follows it). What I want to do is rotate the character towards the position of the empty, so it looks like he is running towards it.

Gida

  • Playmaker Newbie
  • *
  • Posts: 48
Re: How to make object always rotate towards another object?
« Reply #1 on: November 14, 2015, 01:33:52 PM »
Hey Watcher,

did you try the "lookat" Action? All you have to do is add an FSM, add the Action to your State, make a Vector 3 Variable and set it as Target Position.

Watcher

  • Playmaker Newbie
  • *
  • Posts: 2
Re: How to make object always rotate towards another object?
« Reply #2 on: November 14, 2015, 02:12:48 PM »
Thank you for the fast and useful response :)

It is exactly what I was looking for.