add

fun add(other: Hitbox3D): Hitbox3D

Adds another hitbox to this hitbox. The resulting hitbox contains all points that are inside either the original hitbox or the other hitbox.

Return

A new Hitbox3D representing the union of the original hitbox and the other hitbox.

Parameters

other

The other Hitbox3D to add.