Include dependency graph for raycast.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | RaycastSort |
| Sorts PointedThings based on their distance. More... | |
| class | RaycastState |
| Describes the state of a raycast. More... | |
Functions | |
| bool | boxLineCollision (const aabb3f &box, v3f start, v3f dir, v3f *collision_point, v3f *collision_normal) |
| bool | boxLineCollision (const aabb3f &box, v3f box_rotation, v3f start, v3f dir, v3f *collision_point, v3f *collision_normal, v3f *raw_collision_normal) |
| bool boxLineCollision | ( | const aabb3f & | box, |
| v3f | start, | ||
| v3f | dir, | ||
| v3f * | collision_point, | ||
| v3f * | collision_normal ) |
Checks if a line and a box intersects.
| [in] | box | box to test collision |
| [in] | start | starting point of the line |
| [in] | dir | direction and length of the line |
| [out] | collision_point | first point of the collision |
| [out] | collision_normal | normal vector at the collision, points outwards of the surface. If start is in the box, zero vector. |
References dir().
Referenced by boxLineCollision(), Environment::continueRaycast(), ClientEnvironment::getSelectedActiveObjects(), and ServerEnvironment::getSelectedActiveObjects().
Here is the call graph for this function:
Here is the caller graph for this function: