Garry's Mod Wiki
number, number util.IntersectRayWithSphere( Vector rayOrigin, Vector rayDelta, Vector spherePosition, number sphereRadius )
Description
Performs a ray-sphere intersection and returns the intersection positions or nil.
Arguments
2 Vector rayDelta
The end position of the ray relative to the start position. Equivalent of
direction * distance
.Returns
Example
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...