Module quark.physics.collision

@file collision.d

Collision detection utilities for different shape types.

This module provides collision detection functions for different geometric shapes including rectangles and circles, with support for both collision testing and collision response information.

Functions

NameDescription
testCircleCircle(circleA, circleB) Tests for collision between two circles.
testCollision(shapeA, shapeB) Tests for collision between two generic shapes.
testRectangleCircle(rect, circle) Tests for collision between a rectangle and a circle.
testRectangleRectangle(rectA, rectB) Tests for collision between two rectangles using AABB collision detection.

Structs

NameDescription
CollisionResult Result of a collision test containing collision status and response data.