Checking if an entity is in a box

Blitz3D Forums/Blitz3D Programming/Checking if an entity is in a box

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you want to use the coordinate check method, you need to make sure that the box is aligned to the world, or you need to transform your check point so that it is in the coordinate space of the box.

An alternate, and more powerful, method involves doing point-plane tests with each of the faces in the box. I'd recommend this method if you ever intend on doing more complicated shapes.