Original Post
🔒 Locked
D3DXIntersect
Advertisement
Two Scenarios:
If your floor is an irregular surface, which wouldmost likely be a mesh then you may want to look into D3DXMeshIntersect().
If your floor is a flat surface then you can just give your floor a thin bounding box, like a wafer. Then you can check whether the y coordinate of your camera lies inside the bounding box.
To be honest, if the floor isnt that iregular, like in modulation between the highs and the lows then u could even use a bounding box for that.
Hope this helps.
ace
If your floor is an irregular surface, which wouldmost likely be a mesh then you may want to look into D3DXMeshIntersect().
If your floor is a flat surface then you can just give your floor a thin bounding box, like a wafer. Then you can check whether the y coordinate of your camera lies inside the bounding box.
To be honest, if the floor isnt that iregular, like in modulation between the highs and the lows then u could even use a bounding box for that.
Hope this helps.
ace
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement