Module rust_raylib::collision
source · Expand description
Collision checks between different shapes
Functions
- Check collision between box and sphere
- Check collision between two bounding boxes
- Check collision between circle and rectangle
- Check collision between two circles
- Check the collision between two lines defined by two points each, returns collision point
- Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
- Check collision between two rectangles
- Check collision between two spheres
- Check if point is inside circle
- Check if point is within a polygon described by array of vertices
- Check if point is inside rectangle
- Check if point is inside a triangle
- Get collision rectangle for two rectangles collision
- Get collision info between ray and box
- Get collision info between ray and mesh
- Get collision info between ray and quad
- Get collision info between ray and sphere
- Get collision info between ray and triangle