Getting the bounds of the world

Started by zammbi, October 15, 2010, 08:09:30 AM

Previous topic - Next topic

zammbi

How does one get the bounds of the whole world? I want to make it so if a user gets a glitch(fall through a polygon), which they end outside of the map, it warps them back.

So I need to check on the bounds of the whole world. I guess the bounds could change from the character(or any other movable thing) but I'll take a snapshot when the level has loaded.

EgonOlsen

If the level is one single object, you can get its bounding box in object space frim its Mesh. If all yoz want is to check if the player fall through the ground, why not just guess some value that is good enough? You actually don't need the exact value, do you?

zammbi

QuoteIf all yoz want is to check if the player fall through the ground, why not just guess some value that is good enough? You actually don't need the exact value, do you?
Yeah I do that currently. But I want to also want to use it to stop people from walking outside the map too(walls).

QuoteIf the level is one single object, you can get its bounding box in object space frim its Mesh.
Yeah I guess I could merge everything and probably would do the trick for now. Thanks.