Garry's Mod Wiki

Garry's Mod Wiki

  Vector util.IntersectRayWithPlane( Vector rayOrigin, Vector rayDirection, Vector planePosition, Vector planeNormal )

Description

Performs a ray-plane intersection and returns the hit position or nil.

Arguments

1 Vector rayOrigin
Origin/start position of the ray.
2 Vector rayDirection
The direction of the ray.
3 Vector planePosition
Any position of the plane.
4 Vector planeNormal
The normal vector of the plane.

Returns

1 Vector
The position of intersection, nil if not hit.

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...