Announcement

Collapse
No announcement yet.

Accelerometer sensor for mobile?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Accelerometer sensor for mobile?

    How can I use acceleration, game machines, would lead to the right or left?
    Such as traffic racer game

    #2
    you read vector like this: https://answers.unrealengine.com/que...lerometer.html

    Then you use that for steering. But personally i find all mobile games (besides balance teh ball ones) that use accelerometer to have bad interface.

    Comment


      #3
      How can I connect Break vector to steering Input?

      Comment


        #4
        Can you explain more?

        Comment


          #5
          Please help?

          Comment


            #6
            Do some blueprint tutorials.

            For now try printing x,y,z, of acceleration, to see what range they are in. Also which one value changes when you rotate device left/right
            Also check gravity node, not only acceleration.

            When you find which one value (and its range) you need, use "map float in range" and clamp nodes to get output in range of -1 ... +1, then connect this steering.


            and follow some tutorials!

            PS.
            This will not be easy as you need "dead zone" and some way to calibrate it etc, those values may vary from device to device.
            Last edited by Nawrot; 02-02-2015, 12:30 PM.

            Comment


              #7
              Originally posted by Nawrot View Post
              Do some blueprint tutorials.

              For now try printing x,y,z, of acceleration, to see what range they are in. Also which one value changes when you rotate device left/right
              Also check gravity node, not only acceleration.

              When you find which one value (and its range) you need, use "map float in range" and clamp nodes to get output in range of -1 ... +1, then connect this steering.


              and follow some tutorials!

              PS.
              This will not be easy as you need "dead zone" and some way to calibrate it etc, those values may vary from device to device.

              Great thanks
              I could help you, dear friend, I am designing a system.
              In the photo below:

              Click image for larger version

Name:	201111.jpg
Views:	1
Size:	225.4 KB
ID:	1065906



              What system do you recommend?

              Comment


                #8
                I am doing just slight camera wobble when you tilt device, nothing fancy.

                Comment

                Working...
                X