sphere

fun sphere(x: Float, y: Float, z: Float, radius: Float): Hitbox3D

Creates a spherical hitbox defined by its center and radius.

Return

A new Hitbox3D representing the sphere.

Parameters

x

The x coordinate of the center.

y

The y coordinate of the center.

z

The z coordinate of the center.

radius

The radius of the sphere.