Download

Turning wheeled vehicle by tilting?

I am currently working on a vehicle game for mobile and would like the steering input to be controlled by tilting the phone left/right while in landscape. I set a tilt input in my project settings and it works, however I can no longer get my car to go strait without it steering slightly in either direction. Is there a way to fix this in a blueprint?

Thanks in advance.

You will want to have a deadzone on the tilt. Simplest way is just to use a branch with a > or < for the turning and tweak the value until you find whats comfortable