Skip to main content

Questions tagged [accelerometer]

An accelerometer is a sensor, usually embedded in smartphones, that detects the orientation of the device. Accelerometers are commonly used in racing and flying games as a primary input source.

Filter by
Sorted by
Tagged with
0 votes
1 answer
82 views

I'm thinking of making a game where using the phone accelerometer, the player would apply an appropriate force (adding velocity) to a Box2D body. Now, I know technically how to implement that, but I ...
guest86's user avatar
  • 113
2 votes
0 answers
997 views

I am developing a Unity game where I need to tilt an iOS device to steer a ship as it flies in a straight line. The steering should be consistently accurate in any orientation, e.g. if the player ...
Cato's user avatar
  • 103
0 votes
0 answers
361 views

Playstation's gamepad allows us to use gyroscope and accelerometer data but it has a small drift which leads to mouse cursor vibration. I think, we can combine gyroscope and accelerometer data into ...
Robotex's user avatar
  • 251
0 votes
2 answers
468 views

I am designing an endless runner style game like temple run. I need to move the player left and right based on the accelerometer input (tilting). The problem is that the accelerometer input is very ...
Easwar Chinraj's user avatar
0 votes
0 answers
591 views

I am working on an android app built in Unity that would allow the users to track their movements by just using the data coming from the device sensors. I have read about similar issues already and I ...
Marco's user avatar
  • 1
0 votes
1 answer
2k views

I'm working on a mobile game in Unity and using the gyroscope to rotate an object along the x and y axes. ...
airvine's user avatar
  • 103
-1 votes
1 answer
101 views

I am learning game development from the udacity course "https://classroom.udacity.com/courses/ud405/lessons/5389263706/concepts/53853441090923" I am stuck with one statement in the code about ...
Arroju Naveen's user avatar
1 vote
1 answer
289 views

I'm trying to create an infinite flying game where the gameobject (a plane) keeps moving forward and at a particular height throughout the game. I want to be able to roll and pitch the plane but not ...
single arrow games's user avatar
0 votes
1 answer
185 views

I am making a mobile car game, and as it is a serious game for upper limb rehabilitation. The mobile is attached to the forearm of the patient, hence the forearm movement will move and rotate the car. ...
Maha Mohy's user avatar
0 votes
1 answer
89 views

Is It possible to make transformation movement by using Accelerometer data or Accel + Gyro ? as we know, we can make rotation by using Accel or Gyro data. However, how can we make transformation ...
Kayumiy's user avatar
3 votes
1 answer
804 views

I don't know how to use accelerometer in LibGDX; how could I use the the motion sensor? I'm working for a top down game with the motion sensor. I'm new to this framework. My sprite image is already ...
zarawayun's user avatar
1 vote
1 answer
711 views

I am developing a game with libgdx for android.I want use accelerometer for motion control.I am controlling a coin within screen bounds. I want to apply gravity according to device orientation as you ...
Saurabh's user avatar
  • 123
0 votes
1 answer
1k views

I'm using Three.js to make a web-based 3D first-person game. I would like the player to be able to control the camera rotation with their device's accelerometer. The sensor data is received via the <...
user avatar
2 votes
1 answer
836 views

So using LibGDX accelerometer methods, I'm able to get the rotation of the device in the X and Z axes in degrees with this code: ...
Alex Pi's user avatar
  • 93
1 vote
1 answer
1k views

So I've tried the vector rotation sensor using the Android API and it works perfectly to do what I want, but LibGDX does not support this sensor. I've been searching and it seems like I can do the ...
Alex Pi's user avatar
  • 93
1 vote
1 answer
5k views

I'm making a 3D game in unity where the object should move forward and backward as the android device moves/accelerates in the Z axes. ie. When the player moves the devise in the direction of the +ve ...
Abozanona's user avatar
0 votes
1 answer
918 views

I'm trying to develop an app that can detect car acceleration, braking and cornering speed. I need to detect device acceleration. Is that acceleration high or low?. Like flo app on Google Play. I'm ...
Nurlan Shukurov's user avatar
0 votes
2 answers
200 views

I am adding tilt controls to my game. The sensor values I get are different in different android devices which results in random behavior. Anyone knows how can I tackle this situation? I tried ...
idurvesh's user avatar
  • 530
2 votes
1 answer
1k views

I'm working on maze game for Android in Unity 5.1.1f1 and I have troubles with controlling my ball with accelerometer. At start I tried: ...
Nami's user avatar
  • 23
1 vote
2 answers
1k views

In my previous game, I was moving my sprite like so: ...
BungleBonce's user avatar
  • 1,937
6 votes
1 answer
665 views

I'm using libGDX to develop an Android game. The main character can be moved freely in the 2d plane by tilting the phone. The relevant part of my current implementation looks somewhat like this: <...
vauge's user avatar
  • 191
4 votes
3 answers
464 views

When I hit an object, my Fighter is supposed to fall to the Ground but because of the Accelerometer, I can still move it up and down even though it died. The Scroller on the x-Axis though stops. ...
SteveNash's user avatar
3 votes
1 answer
3k views

I'm making a game where you control a platform with balls falling on it, and you have to balance the balls and prevent them from falling off. I'm currently using a mouse to control it with this code: ...
Chris's user avatar
  • 59