Camera Collision

rewb0rn

11-02-2007 00:00:39

Hi,

I want my camera to behave like a camera you know from any game, it collides with walls and will smoothly fly through them if they are between the player and the camera.

Im at the colliding thing. I created a body and a geometry for it, and i made it not to fly through objects. The problem is now the camera is just a body as any body else so what happens is the camera pushes the objects around and thats not what i want it to be. Has anyone done this before with ogreode? Any suggestions appreciated.
I tried to disable the collision in the collision method of the listener but it seems the collision is not computed for each object separatly, i can either make them ignore each other or both be pushed.