Fixing Wheelies


One major problem that we kept running into in our game was wheele-ing. When the player would drive off almost anything and while holding the accelerator, would then make the car wheelie. This would make it almost unplayable for the players making it hard for the player to actually be able to drive off any slopes or fall off of anything. Another bug that was present was when the player would respawn while driving they would keep the velocity that they had from respawning.

I was able to fix the wheelie problem by first checking if the wheels that were on the ground was two. If there were exactly two wheels on the ground that would mean the car is doing a wheelie or attempting to, and I would set a value to true. Then in the driving portion of the script that would push the car forward, I changed it to check if the car is wheelie-ing and if so the acceleration of the car would now include pushing the front of the car down. I was able to very quickly fix the bug regarding the respawning properties, just by changing the cars velocity to a Vector3.zero.

–Ryan Lugo

Get BlazeRunners : Bullet Ballet

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.