Search Unity

Problem with the accelerometer

Discussion in 'Scripting' started by LeeDenbigh, Nov 3, 2015.

  1. LeeDenbigh

    LeeDenbigh

    Joined:
    Jul 7, 2014
    Posts:
    48
    Hi, I'm not quite sure what the problem is that I'm having. All I know is that I am using the accelerometer to control a 2d objects X axes (left and right). The thing that keeps happening though, when I touch a moving platform (not all the time) I make the player a child of the moving platform (so that it will stick to it), it kinda does the job, only it feels as though the accelerometer is off center and it shakes the player.

    Is this a known bug, or does anyone know how to fix this?