add Rectangle
fun addRectangle(minX: Float, minY: Float, minZ: Float, maxX: Float, maxY: Float, maxZ: Float): Hitbox3D
Adds a rectangular hitbox to this hitbox. The resulting hitbox contains all points that are inside either the original hitbox or the new rectangle.
Return
A new Hitbox3D representing the union of the original hitbox and the new rectangle.
Parameters
min X
The minimum x coordinate of the rectangle.
min Y
The minimum y coordinate of the rectangle.
min Z
The minimum z coordinate of the rectangle.
max X
The maximum x coordinate of the rectangle.
max Y
The maximum y coordinate of the rectangle.
max Z
The maximum z coordinate of the rectangle.