xs_plane_rayintersect
stock bool:xs_plane_rayintersect(const Float:plane[], const Float:rayStart[], const Float:rayDir[], Float:out[])
| Parameter |
Description |
| plane | The plane to check intersection with. |
| rayStart | The starting point of the ray. |
| rayDir | Direction in which the ray is going. |
| out | The vector to copy the intersection point to, if it exists. |
Checks whether a plane intersects with the ray starting at @rayStart and
going to @rayDir direction.
If it does intersect, outputs the intersection point in @out.
true if they intersect, false otherwise.