5/26/2023 0 Comments Tiled tutorialsSo we need to subtract the excess from y delta to land the character perfectly on the ground. This is important especially for jump action, where your character is falling from high point and about to land on the ground, there's a moment where adding some y amount of delta will make the character plunge through the ground, but you still have to move it because it still hovers above the ground. When we do the collision hit test, it is important for the function to return how "deep" is the collision so that we can calculate the excess to subtract from the delta. ![]() If it does, we need to subtract the amount of delta so it doesn't crash into the wall.
0 Comments
Leave a Reply. |