Hitbox2D

constructor(minX: Float, minY: Float, maxX: Float, maxY: Float, inside: (ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>) -> Boolean)


constructor(minX: Float, minY: Float, maxX: Float, maxY: Float)

Creates a rectangular hitbox defined by its minimum and maximum x and y coordinates.

Parameters

minX

The minimum x coordinate.

minY

The minimum y coordinate.

maxX

The maximum x coordinate.

maxY

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.