Implements physic in a Room


I have loaded a room in JMonkeyEngine. I have product this room with Blender and i exported hit in obj format.

I would implement a physic. I would the camera don't

I want the camera does not go beyond the walls

Can you help me?.

Sorry for my english but i don't write and speak english very well.


In jbullet-jme you could use a GhostNode with sphere collision shape that you move with the camera to check for collisions with the walls. The room would be a PhysicsNode with mass=0 and mesh collision shape.

You can find more info through the googlecode page of jbullet-jme accessible through my signature.