Module collision

Source
Expand description

Collision checks between different shapes

Functionsยง

check_collision_box_sphere
Check collision between box and sphere
check_collision_boxes
Check collision between two bounding boxes
check_collision_circle_rect
Check collision between circle and rectangle
check_collision_circles
Check collision between two circles
check_collision_lines
Check the collision between two lines defined by two points each, returns collision point
check_collision_point_line
Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
check_collision_rects
Check collision between two rectangles
check_collision_spheres
Check collision between two spheres
check_point_inside_circle
Check if point is inside circle
check_point_inside_polygon
Check if point is within a polygon described by array of vertices
check_point_inside_rect
Check if point is inside rectangle
check_point_inside_triangle
Check if point is inside a triangle
get_collision_rect
Get collision rectangle for two rectangles collision
get_ray_collision_box
Get collision info between ray and box
get_ray_collision_mesh
Get collision info between ray and mesh
get_ray_collision_quad
Get collision info between ray and quad
get_ray_collision_sphere
Get collision info between ray and sphere
get_ray_collision_triangle
Get collision info between ray and triangle