KX_BoundingBox(EXP_PyObjectPlus)¶
base class — EXP_PyObjectPlus
- class KX_BoundingBox(EXP_PyObjectPlus)¶
A bounding volume box of a game object. Used to get and alterate the volume box or AABB.
from bge import logic from mathutils import Vector owner = logic.getCurrentController().owner box = owner.cullingBox # Disable auto update to allow modify the box. box.autoUpdate = False print(box) # Increase the height of the box of 1. box.max = box.max + Vector((0, 0, 1)) print(box)
- min¶
The minimal point in x, y and z axis of the bounding box.
- Type
- max¶
The maximal point in x, y and z axis of the bounding box.
- Type
- center¶
The center of the bounding box. (read only)
- Type
- radius¶
The radius of the bounding box. (read only)
- Type
float
- autoUpdate¶
Allow to update the bounding box if the mesh is modified.
- Type
boolean