Platformer Collision


I’m working on a quick platformer for a game jam, and I’m very new to development in general, so after a day or so I gave up on writing my own physics stuff and ganked the code from the platformer tutorial. However, even though the jump physics and stuff are better, I keep running into this problem where the player character seems to “trip” on the tiles. I’ve switched from dynamic to kinematic, fiddled with the player hit box, tried just about everything that I could find in the forums. I’d post the code, but it’s entirely from the tutorial. I don’t get any error codes and the physics debug mode looks normal. Any suggestions as to what could be happening?



It’s a common question here. The tutorial uses large individual collision shapes instead of tiles, so it works in that case. Instead of correcting for collision shapes, raycasts are more reliable.