Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

dealing with character collision when faced with unexpected quirks

this week I wanted to get flying and boosting added into the game, to do that i had to finally enable gravity on the mech. Normally this wouldnt really be an issue because the character controller facilitates character movement. But for some reason the character controller was being the biggest obstacle. First off, it refused to collide with objects in the scene meaning I couldnt detect the ground, or enemy bullets. It also interfered with gravity, in a way that was unique to my current setup for player input. So instead i found a tutorial for character movement without a character controller. After making a few adjustments to the code I was able to make collisions work properly by getting rid of the character controller and defining things like ground collisions myself. Now we have a mech that can ascend into the air and boost at high speeds. It's very fun to drive but I'll probably have to tweak the sensitivity of the virtual joysticks later down the line.

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.