Hey all,
Does anyone know of an action or technique where I can get the magnitude of a device's acceleration or more simply, the magnitude of a float?
Here's my situation; i'm creating a skiing game and I want to slow down the player based on how fast they turn. The quick they turn, the quicker they decelerate.
I can do this using the magnitude of a joystick but i'd like to apply it to the device's acceleration or at least the float i'm creating from the device axis.
Any help would be great!
Cheers,
Simon