Hitbox2D
constructor(minX: Float, minY: Float, maxX: Float, maxY: Float, inside: (ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>) -> Boolean)
Creates a rectangular hitbox defined by its minimum and maximum x and y coordinates.
Parameters
min X
The minimum x coordinate.
min Y
The minimum y coordinate.
max X
The maximum x coordinate.
max Y
The maximum y coordinate.
constructor(min: ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>, max: ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>)
Creates a rectangular hitbox defined by its minimum and maximum points.
Parameters
min
A pair representing the minimum (x, y) coordinates.
max
A pair representing the maximum (x, y) coordinates.