Video Explanation: https://www.youtube.com/watch?v=iIJX…ature=youtu.be
Download for Android Phones to Test:
https://drive.google.com/drive/folde…Ey?usp=sharing
Unreal Engine is only engine that could go forwards using accelerometer on devices that I’ve found. Unity you just go around in circles.
However you could not go forwards or backwards or I didn’t think you could.
This blueprint worked though, so now I can go forwards and backwards using acceleration and accelerometer in phone.
Blueprint summary: If the character is in the starting area, the condition is true and it closes the negative acceleration and opens the gate to the
positive acceleration. If character is in the finish, it closes the positive acceleration and opens the negative acceleration.
Using negate float it makes acceleration negative, since unreal engine was not getting or processing negative values or maybe it was all over
the place for accelerometers.
Edit: To get camera to follow player on the turn around, uncheck Use Pawn Control Rotation, so you can see the object you’re chasing on the turn around.