A Different Approach

Another day, another attempt at making this ground detection system behave.

Instead of fiddling around with the same chunks of code over and over again for the nth day in a row and begging the powers-that-be that it will somehow work this time, I've decided to burn it all down and start from scratch.

This time, I've added an empty object to my player character's feet, as seen below, set it as a trigger and attached a new script called "GroundDetection" to it:



It is a work in progress (I still have to add references), but basically it should check if the collider of the object it is colliding with is tagged as "Ground", if it is, great! isGrounded = true. If not, isGrounded = false. Simple and easy.

My fingers remain crossed. Hopefully, this will solve the issue of the player being able to jump up the invisible level borders and anything else not tagged as "Ladder", while also not leaving the player perpetually airborne after hitting a wall and sliding to the ground.

Wish me luck!

Comments

Popular posts from this blog

Play Test #2 Results

Hello!

Elite Sprites & UI/UX Asset Dump