circular

fun circular(x: Float, y: Float, radius: Float): Hitbox2D

Creates a circular hitbox given its center and radius.

Return

A Hitbox2D representing the circle.

Parameters

x

The x coordinate of the center.

y

The y coordinate of the center.

radius

The radius of the circle.