util.IntersectRayWithPlane

From Garry's Mod
Revision as of 13:01, 16 July 2017 by Robotboy655 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 util.IntersectRayWithPlane( )

Contents

Description

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

Arguments

Vector rayOrigin

Origin/start position of the ray.

Arguments

Vector rayDirection

The direction of the ray.

Arguments

Vector planePosition

Any position of the plane.

Arguments

Vector planeNormal

The normal vector of the plane.

Returns

Vector

The position of intersection, nil if not hit.
Personal tools
Navigation