setObb3 method Null safety
- Obb3 obb
Set the AABB to enclose a obb
.
Implementation
void setObb3(Obb3 obb) {
final corner = Vector3.zero();
obb.copyCorner(0, corner);
_min.setFrom(corner);
_max.setFrom(corner);
obb.copyCorner(1, corner);
hullPoint(corner);
obb.copyCorner(2, corner);
hullPoint(corner);
obb.copyCorner(3, corner);
hullPoint(corner);
obb.copyCorner(4, corner);
hullPoint(corner);
obb.copyCorner(5, corner);
hullPoint(corner);
obb.copyCorner(6, corner);
hullPoint(corner);
obb.copyCorner(7, corner);
hullPoint(corner);
}