playMaker

Author Topic: Direction relative to thumbstick  (Read 1580 times)

LogLady

  • Full Member
  • ***
  • Posts: 150
Direction relative to thumbstick
« 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!
« Last Edit: February 24, 2015, 04:44:45 PM by LogLady »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Direction relative to thumbstick
« Reply #1 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