Quoted By:
Ok, I fixed collision.
When I say I fixed collision, I don’t mean “I patched up collision a little,” I mean I took it and I deconstructed it down to bits and pieces, and then put it back together in a completely different way that actually works in every scenario.
My issue started with this shape here, this triangle. I’m using a rhombus for collision, it’s super neat and makes everything very smooth. The issue? How do I treat this? Is this a wall? A ceiling? A floor? What do I do with a shape that could be all three?
A few days ago I developed a fix for square wall chunks, allowing them to serve as the ceiling, floor, or wall, depending on where the player was in reference to them. Yesterday, I realized that triangle collision like this could be approached the same way when encountered from two directions. So I got to work on that fix, including using this diagram in an editing software to visually think through every possible edge case.
And now, 11 hours later, it’s complete.