Question by
magnuswikhog · Jun 15, 2016 at 06:23 AM ·
androidaccelerometergesture
Android Roll-a-ball jump?
I'm playing around with the Roll-a-ball example project on Android, and I've got the movement to work by tilting the device. Now I want the ball to jump if I "nudge" the device quickly in some axis.
Imagine a real ball on top of the device. If you quickly flip the device in one direction and then slightly back, the ball would jump in the flipped direction. How would I detect something like this in Unity3D?
Comment
Your answer
Follow this Question
Related Questions
Rotate Object by Tilting Android Device Any Angle 1 Answer
Gravity on Android 1 Answer
How to calibrate phone acceleratormeter data? 0 Answers
How do I pause the accelerometer? 1 Answer
Problem with Android platform 0 Answers