Skip to main content

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

Title: "Dashing on Uneven Terrain"

A topic by CodeCrunchers created Sep 16, 2023 Views: 48
Viewing posts 1 to 1
Developer

This week our team found an issue regarding the Dash Ability when used on sloped surfaces. Essentially the player's Direction Vector would not get updated to match the new pitch of the surface they were approaching. In order to fix this issue, I decided to remove the gravity force and the friction with the ground to enable an glide-like effect along the surface. This fixed the issue but caused another. When near the edge of a surface such as a stair case, the player would gain increased velocity and distance when dashing from those edges. I decided to apply a slight gravity increase along with reducing the amount of velocity applied when the angle between the player and the surface was outside a certain range. This solution allowed for the proper velocity and distance to be achieved.