cube

fun cube(x: Float, y: Float, z: Float, size: Float): Hitbox3D
fun cube(x: Int, y: Int, z: Int, size: Int): Hitbox3D

Creates a cubic hitbox defined by its starting point and size.

Return

A new Hitbox3D representing the 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.