transformed Rectangle
fun transformedRectangle(x: Float, y: Float, z: Float, width: Float, height: Float, depth: Float, transform: Matrix4): Hitbox3D
Creates a transformed rectangular hitbox defined by its position, size, and transformation matrix.
Return
A new Hitbox3D representing the transformed rectangle.
Parameters
x
The starting x coordinate.
y
The starting y coordinate.
z
The starting z coordinate.
width
The width of the rectangle.
height
The height of the rectangle.
depth
The depth of the rectangle.
transform
The transformation matrix to apply.