m Fix category |
add a lot more info to Bounding Box |
||
Line 1: | Line 1: | ||
A BoundingBox is a type that describes an AABB box (Axis Aligned Bounding Box) which as in the name, has zero rotations. Bounding boxes are usually used to make a simplistic 3 dimensional area around a set of colliders or points, which can be used for detecting points within or out of areas, whether 2 bounding boxes are touching, and the rough size of an object | |||
To use a bounding box as if it is an OOBB (Object Oriented Bounding Box) which includes rotations, then translate the other box or point (Object A) to the transform space of a Bounding Box (Object B). Calculations done with Object A after translating them to the transform space of Object B are now treated like OOBB calculations. | |||
As an example, other games like Minecraft use only AABB calculations for their collisions. Only some very special mods like Minecraft's Create mod is able to break the AABB limitation of Minecraft. | |||
[[Category:Type]] | [[Category:Type]] |
Revision as of 00:40, 13 May 2024
A BoundingBox is a type that describes an AABB box (Axis Aligned Bounding Box) which as in the name, has zero rotations. Bounding boxes are usually used to make a simplistic 3 dimensional area around a set of colliders or points, which can be used for detecting points within or out of areas, whether 2 bounding boxes are touching, and the rough size of an object
To use a bounding box as if it is an OOBB (Object Oriented Bounding Box) which includes rotations, then translate the other box or point (Object A) to the transform space of a Bounding Box (Object B). Calculations done with Object A after translating them to the transform space of Object B are now treated like OOBB calculations.
As an example, other games like Minecraft use only AABB calculations for their collisions. Only some very special mods like Minecraft's Create mod is able to break the AABB limitation of Minecraft.