playMaker

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

LogLady

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Direction relative to thumbstick
« on: February 24, 2015, 10:50:34 AM »
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, 02:44:45 PM by LogLady »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Direction relative to thumbstick
« Reply #1 on: March 01, 2015, 10:46:57 PM »
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