Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Watcher on November 14, 2015, 12:58:09 PM

Title: How to make object always rotate towards another object?
Post by: Watcher 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.
Title: Re: How to make object always rotate towards another object?
Post by: Gida 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.
Title: Re: How to make object always rotate towards another object?
Post by: Watcher on November 14, 2015, 02:12:48 PM
Thank you for the fast and useful response :)

It is exactly what I was looking for.