I'm doing a scene using openGL (a house). I want to do some collision detection, mainly with the walls in the house.
I have tried using the TestIntersionPlane function in Lesson 30 but I don't understand what exactly should the first two parameters be. I've tried the following:
where Z is initially (0,0,0) and everytime I move the camera towards the plane, I reduce its z component by 0.1 (i.e. Z.z-=0.1 ).
I know that the problem is with the vel vector, but I can't figure out what the right value should be. Can anyone help me please?