reddozen Posted June 2, 2014 Share Posted June 2, 2014 Anyone have a suggestion to the best way to handle something like... inside a building vs outside or swimming vs walking? I'm basically looking for a programmatically cheep way to determine if I'm inside a volume. Calculating distance from origin of the volume container may be too expensive as you would have to also take into account rotations and translations etc, and I cannot rely on a collision detection when entering the volume, or with the floor of the volume since in the water, you could be suspended at any height of the volume. Collision detection will be used for most situation. Where entering the volume changes the state using a 2 box system of staggered boxes for inside and outside triggers. The problem comes when you load into a volume, or are teleported into it. In this case you wouldn't trigger the collision, so I have to come up with a good way to determine volume location as a situational event. Hope this makes since. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.