rotatedCube

fun rotatedCube(x: Float, y: Float, z: Float, size: Float, degreesX: Float, degreesY: Float, degreesZ: Float): Hitbox3D
fun rotatedCube(x: Int, y: Int, z: Int, size: Int, degreesX: Float, degreesY: Float, degreesZ: Float): Hitbox3D

Creates a rotated cubic hitbox defined by its starting point, size, and rotation angles.

Return

A new Hitbox3D representing the rotated cube.

Parameters

x

The starting x coordinate.

y

The starting y coordinate.

z

The starting z coordinate.

size

The length of each edge of the cube.

degreesX

The rotation angle around the x-axis in degrees.

degreesY

The rotation angle around the y-axis in degrees.

degreesZ

The rotation angle around the z-axis in degrees.