This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
raycasting_line_intersections [2023/04/17 15:28] max |
raycasting_line_intersections [2023/04/17 15:33] max |
||
---|---|---|---|
Line 13: | Line 13: | ||
Overall, raycasting is a powerful technique for simulating physics in real-time applications and games, and it has a wide range of practical uses. | Overall, raycasting is a powerful technique for simulating physics in real-time applications and games, and it has a wide range of practical uses. | ||
+ | ===== Raycasting functions ===== | ||
- | ===== Raycasting:: | + | ==== Spheres |
+ | |||
+ | **Raycasting:: | ||
Tests if a ray intersects a sphere. | Tests if a ray intersects a sphere. | ||
Line 27: | Line 30: | ||
- '' | - '' | ||
- | ===== Raycasting:: | + | ==== AABBs ==== |
+ | |||
+ | |||
+ | **Raycasting:: | ||
Tests if a ray intersects an axis-aligned bounding box (AABB). | Tests if a ray intersects an axis-aligned bounding box (AABB). | ||
Line 40: | Line 46: | ||
- '' | - '' | ||
- | ===== Raycasting:: | + | ==== Oriented Boxes ==== |
+ | |||
+ | **Raycasting:: | ||
Tests if a ray intersects an oriented bounding box (OBB). | Tests if a ray intersects an oriented bounding box (OBB). | ||
Line 53: | Line 61: | ||
- '' | - '' | ||
- | ===== Raycasting:: | + | ==== Planes |
+ | |||
+ | |||
+ | **Raycasting:: | ||
Tests if a ray intersects a plane. | Tests if a ray intersects a plane. | ||
Line 66: | Line 77: | ||
- '' | - '' | ||
- | ===== Raycasting:: | + | ==== Triangles |
+ | |||
+ | |||
+ | **Raycasting:: | ||
Tests if a ray intersects a triangle. | Tests if a ray intersects a triangle. | ||
Line 79: | Line 93: | ||
- '' | - '' | ||
- | ===== Raycasting:: | + | ==== Meshes |
+ | |||
+ | |||
+ | **Raycasting:: | ||
Tests if a ray intersects a mesh. | Tests if a ray intersects a mesh. | ||
Line 92: | Line 109: | ||
- '' | - '' | ||
- | ===== Raycasting:: | + | ==== Entities |
+ | |||
+ | **Raycasting:: | ||
Tests if a ray intersects an entity. | Tests if a ray intersects an entity. | ||
Line 104: | Line 123: | ||
- '' | - '' | ||
+ | |||
+ | ===== Line testing ===== | ||
===== Raycasting:: | ===== Raycasting:: |