xs_plane_rayintersect

Синтаксис

stock bool:xs_plane_rayintersect(const Float:plane[], const Float:rayStart[], const Float:rayDir[], Float:out[])

Употреба

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.