Hitbox2D
Constructors
Link copied to clipboard
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.
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.
Functions
Link copied to clipboard
Combines this hitbox with another hitbox using a union operation. The resulting hitbox contains all points that are inside either of the original hitboxes.
Adds a rectangular hitbox to this hitbox. The resulting hitbox contains all points that are inside either the original hitbox or the new rectangle.
Link copied to clipboard
Checks if the given double point is inside the hitbox.
Checks if the given integer point is inside the hitbox.
Checks if the given double coordinates are inside the hitbox.
Checks if the given float coordinates are inside the hitbox.
Checks if the given integer coordinates are inside the hitbox.