Handmade Hero»Forums»Code
17 posts
Day 053 - Collision detection bug?
Edited by mallardz on
Typing in the code as I follow along, I'm always introducing a bunch of bugs, especially in the collision detection.

This one however I can reproduce in the original code as well. If you slide up and down a wall, you can move into the wall:



*apologies I seem unable to post the image or a link :(
Casey Muratori
801 posts / 1 project
Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.
Day 053 - Collision detection bug?
The collision detector is not really very good at the moment. Or rather, the collision detector is fine but we do not handle the result well, so it is a problem, because if you are ever placed on the other side of a wall, you will be stuck there.

This is not your fault :) When we do the industrial strength one, we will address this.

- Casey
17 posts
Day 053 - Collision detection bug?
Cool, thx.