OBB
The OBB class represents an “oriented bounding box” for an object. OBB is more precise but more performance-heavy than AABB. The list below isn’t of functions but properties, so you can call them like this: this.entity().worldOBB().center
Property | Description |
---|---|
center |
Vec3 the {x, y, z} center of the OBB |
extents |
Vec3 the {x, y, z} extents of the OBB |
xAxis |
Vec3 the x-axis orientation axes |
yAxis |
Vec3 the y-axis orientation axes |
zAxis |
Vec3 the z-axis orientation axes |
center
Vec3 the {x, y, z} center of the OBB
extents
Vec3 the {x, y, z} extents of the OBB
xAxis
Vec3 the x-axis orientation axes
yAxis
Vec3 the y-axis orientation axes
zAxis
Vec3 the z-axis orientation axes