Difference between revisions of "Bounding volume"

From Valve Developer Community
Jump to: navigation, search
 
(See Also: just a few links added)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Axial-aligned bounding box, or AABB, stands for a 3D volume relative to a given origin.
+
{{mergeto|bounding box}}
{{stub}}
+
A box approximation of an object used for collision & hit detection.
 +
 
 +
==AABB==
 +
'''A'''xial-aligned '''B'''ounding '''B'''ox stands for a 3D volume relative to a given origin. Effectively it is a cuboid which is not rotated. All of its edges are parallel to the axes it is alligned to.
 +
 
 +
==OBB==
 +
'''O'''riented '''B'''ounding '''B'''ox stands for a 3D volume relative to a given origin and angle.
 +
 
 +
==Difference==
 +
In many applications the bounding box is aligned with the axes of the co-ordinate system, and it is then known as an AABB. To distinguish the general case from an AABB, an arbitrary bounding box is sometimes called an OBB. AABBs are much simpler to test for intersection than OBBs, but have the disadvantage that when the model is rotated they cannot be simply rotated with it, but need to be recomputed.
 +
 
 +
==See Also==
 +
* [[Bounding box]]
 +
* [[NPC Hull]]
 +
* [[Player Hull]]
 +
* [[CollisionProperty]]
 +
* [[Vphysics & Qphysics]]
 +
* [[Wikipedia:{{PAGENAME}}]]
 
[[Category:Glossary]]
 
[[Category:Glossary]]

Latest revision as of 01:32, 5 May 2008

A box approximation of an object used for collision & hit detection.

AABB

Axial-aligned Bounding Box stands for a 3D volume relative to a given origin. Effectively it is a cuboid which is not rotated. All of its edges are parallel to the axes it is alligned to.

OBB

Oriented Bounding Box stands for a 3D volume relative to a given origin and angle.

Difference

In many applications the bounding box is aligned with the axes of the co-ordinate system, and it is then known as an AABB. To distinguish the general case from an AABB, an arbitrary bounding box is sometimes called an OBB. AABBs are much simpler to test for intersection than OBBs, but have the disadvantage that when the model is rotated they cannot be simply rotated with it, but need to be recomputed.

See Also