I Can See Through Walls...

Tufty

30-07-2006 21:46:49

I posted this earlier:
http://www.ogre3d.org/phpBB2/viewtopic.php?t=22954

Which I think leads me on to more ODN / C# related quesitons, so I have posted topic to this area.

My basic problem is that when i use Ray's to see if i can see an object, the Ray's go through walls in my building mesh. And it says I can see an object even though there are 1 or more walls in the way!!

The post above suggests i use a Physics Engine :? I don't need any complicated physics functions, all i want to be able to do is see if i can actually see objects under my cross hair AND have collision detection so my camera doesn't go through walls.

Please can someone suggest the best physics to use with C# for my needs?

I see I have a wrapper for Gangsta, and I can use it in my C# project, but i'm getting confused, because it looks like i need more physics engines to use it, and how does it intergrate with Ogre?! :?

I'm struggling to find any examples doing what i want to do, and i would have thought it is a common thing to do. Has anyone done this? Can any one point me in the right direction please? C# examples would be ideal!

Many thanks!