Darxeal / gyroscope-bot

Rocket League bot controllable with your smartphone's gyroscope

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gyroscope Bot

A custom Rocket League bot (RLBot) that you can control with your smartphone's gyroscope.

gif

The best way to have fun with it is on custom rings maps.

Here's a video of me trying to use it on Panic's Air Race: https://youtu.be/5xSMyHJ8Ixc

Note that the video is not a replay, I'm "spectating" the bot in soft-attach intentionally. Otherwise it's much harder to control because most of the time your perspective of your smartphone doesn't match your view of the car!

How it works

The bot hosts a local Flask server with Flask-SocketIO. You can access your PC's local IP in your smarthphone's browser, and the frontend uses the DeviceOrientation API to read your phone's orientation and sends it to the bot via websockets.

Sometimes and especially at the beginning the orientation of the car and your phone might not be synced. That's why there is a big button on the frontend - hold it, orient your phone so that it matches your view of the car, and release.

More controls if needed:

  • alt - boost
  • x - jump

About

Rocket League bot controllable with your smartphone's gyroscope


Languages

Language:Python 70.1%Language:HTML 29.9%