Skip to main content

What Is OBB

What Is OBB​

OBB means Oriented Bounding Box.

For a node, OBB preserves rotation and orientation in world space.
So when a node rotates, OBB rotates with it.

In practice, OBB answers this question: "What are the real visual bounds of this rotated object in world space?"

API in Flowscape​

MethodMeaning
getLocalOBB()Local oriented box in node space.
getWorldOBB()World oriented box for this node.
getHierarchyWorldOBB()World oriented box for node + descendants.
getWorldCorners()Four transformed corners used for OBB-oriented logic.

When OBB is useful​

  • rotated selection visuals
  • resize handles aligned with object orientation
  • transform gizmos
  • precise editor overlays

Live OBB Example​

Practical note​

OBB is more precise for rotated objects, but usually heavier for broad-phase spatial checks than AABB.

Next​