Archived

This topic is now archived and is closed to further replies.

bengaltgrs

Detecting the floor?

Recommended Posts

So far I have created an indoor world in 3ds max and have it loaded in my app as a .x file, and I have a working camera class. The next step is to somehow find the height of the floor directly beneath the camera. I was just curious as to what would be the best way to go about doing this. Any help would be appreciated.

Share this post


Link to post
Share on other sites
Well for general collisions with mesh objects you can use the D3DX functions for firing a ray and determining a collision point, I think one is D3DXIntersect or something. But in general I think you would be better to preprocess your 3D data so you have the floor as a seperate data representation and can then optimise your collision

Share this post


Link to post
Share on other sites