Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: LogLady on February 24, 2015, 12:50:34 PM

Title: Direction relative to thumbstick
Post by: LogLady on February 24, 2015, 12:50:34 PM
Hello!

I'm trying to rotate an object to the same direction that my thumbstick is pointing. How do I get the angle of the thumbstick? I'm using a xbox 360 joypad. Using the "axis event extended" action I can rotate my character to each direction using the stored angle but I want to rotate it to all directions. Maybe a "rotate to" or "look at angle" could solve it or maybe I'm mistaking something.

Thanks!
Title: Re: Direction relative to thumbstick
Post by: jeanfabre on March 02, 2015, 12:46:57 AM
Hi,

check this post, it has an action to get the angle of between two input axis.

http://hutonggames.com/playmakerforum/index.php?topic=4516.msg21023#msg21023

 Bye,

 Jean