Get Gamepad Stick Rotation

Hi All,

Not sure if its even been made available or is an option but I’ve created a macro that when given the Gamepad X and Y axis of the stick it gives you a rotation.

I have no idea how to make it available to people, so I’ll share a quick pic.

Capture.PNG

If anyone is interested (probably not) then I’ll find out how to share it

Why not just select all the nodes inside the macro, hit ctrl+c and paste them into a code box:


just like this

should be simple enough to do.

You can also just use the atan2 function,
plugging in gamepad y and x values
gives you the rotation from -180 to 180 and 0 when both x and y are 0