Hey guys.
At the moment I’m stuck at collision handling for my 3D game. If I search for it online I only find fancy algorithms to detect if two objects intersect, but not how to handle it correctly.
My problem is that if I check the collision for let’s say the player and a wall and they do intersect it’s basically to late to prevent them from colliding. So how should I handle this the best way especially in 3D space where I have no deltas that says I’m going up or down.
Also where should I handle this stuff. I have a player class that includes the input handling for the movement, I have a Level class that holds the player and the single chunks (yes it’s some kind of minecraft game) and the Chunk class where the actual blocks are.
How does this all fit together?
I hope you have some tips for me =)