Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jayhfd on May 31, 2013, 05:40:57 AM

Title: Please explain Vector3 Rotate Towards[FIXED]
Post by: jayhfd on May 31, 2013, 05:40:57 AM
Hi,
I've tried to mess with this action a number of times and never really got it to do anything. I'm wanting to use this instead of a smooth look at action, because smooth look is giving me a lagging effect, whereas I just want to rotate toward my target at a set rate.

As far as I can understand, Vector3 Rotate Towards should take for example vector 1: 0,0,0 and over time, change that to 0,180,0. In conjunction with Set Rotation, if I used the current direction variable, I'd expect my game object to do a 180 over time.

What actually happens when I try this, is that current gets instantly set to target direction in one frame, even if I set rotation speed to .00000001.

Can someone explain what I'm doing wrong here?
Thanks!
Jay
Title: Re: Please explain Vector3 Rotate Towards
Post by: jeanfabre on May 31, 2013, 06:28:47 AM
Hi,

 Odd, the max magnitude was not exposed in this action, and setting it to 1 makes it work.

I have made a post on this for you to get the fix.

http://hutonggames.com/playmakerforum/index.php?topic=4034.0

Bye,

 Jean