Hello,
I am currently programming a Jump and Run Game with OpenGL and I don't know how I prevent the Kamera from moving into a Block.
So far, there are only cubes in the Scene (length = 1) and the camera is a cuboid 1,2,1 (y is the upgoing coordinate).
I am already able to check if the camera is going to be inside a cube in the next render call but I am struggling on preventing it from going inside it. I have tried it with different approaches but I don't think that those are the right way to go.
Can anyone tell me what the code should look like and how it is done or link me to a tutorial?