2D wall detection problem
So I'm making a 2D game and I made the movement using an emitter and a teleporter and collision isn't a thing so I made it myself.
the basic idea is for example if pressing forward and the trigger zone isn't detecting scenery then increase the X by 0.1. this works just fine but if I set the speed to 0.3 it will ignore collision because in a frame it was behind the wall and the next frame it's inside or maybe passed it.
so I thought I can change the trigger zones based on speed but that didn't sound good, then I thought maybe I can change the movement itself like can I make it move 0.01 ten times instead of 0.1 each frame?
subframe movement might not be a thing in dreams so can you give me another solution?
Please sign in to leave a comment.