Expand description
Common collision handling code
Functionsยง
- check_
collision_ circles - Checks collision between two circles.
- check_
collision_ lines - Check the collision between two lines defined by two points each, returns collision point by reference
- check_
collision_ point_ circle - Checks if point is inside circle.
- 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_ point_ poly - Check if point is within a polygon described by array of vertices
- check_
collision_ point_ triangle - Checks if point is inside a triangle.
- check_
collision_ spheres - Detects collision between two spheres.
- get_
ray_ collision_ model - Gets collision info between ray and model.
- get_
ray_ collision_ quad - Gets collision info between ray and model.
- get_
ray_ collision_ sphere - Detects collision between ray and sphere.
- get_
ray_ collision_ triangle - Gets collision info between ray and triangle.