Tilt controls for physics ball

Hello everyone,

Not sure if this has been posted already, but I’m experimenting with the physics ball template in UE4 and I want to change the control scheme to tilt controls on a mobile platform (Android). I want to be able to tilt my phone and have the ball roll, and if I tap the screen, the ball will jump. I’m still pretty new at Blueprint though, so I was wondering if anyone out there could help me out with this. Or at least point me in the right direction. Any help would be greatly appreciated. Thanks a lot guys!

If you’re working in C++, you likely can have the map geometry itself rotate based on gravity ( see the docs on the gyro input hereand FSceneViewport::OnMotionDetected | Unreal Engine 5.2 Documentation), which could make it operate like an old labyrinth puzzle.

As far as tapping to make ball bounce, I’d capture the tap itself, then apply force to the bottom of the ball so it pops up.

Thanks for the tip! I guess I’ll have to use C++ for this. If anyone else can give me a way to do this in Blueprint, I’d still appreciate it. But for now, I suppose I can look into doing it this way.