Garry's Mod Wiki
Vector, number util.IntersectRayWithPlane( Vector rayOrigin, Vector rayDirection, Vector planePosition, Vector planeNormal )
Description
Performs a ray-plane intersection and returns the hit position or nil.
Arguments
Returns
2 number
The distance from start position to the hit point, if there was a hit.
This was recently added in version (2026.07.17). It might only be available on the Dev Branch right now.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...