S&box Wiki

Plane.Trace

Plane.Trace

Syntax

Vector3? Trace( Ray ray, bool twosided = False, double maxDistance = double.MaxValue )

Description

Trace a Ray against this plane

Arguments

Ray ray
The origin and direction to trace from
bool twosided False
If true we'll trace against the underside of the plane too.
double maxDistance double.MaxValue
The maximum distance from the ray origin to trace

Returns

The hit position on the ray. Or null if we didn't hit.

Special Pages


Wikis

?

Render Time: 53ms

DB GetPage 44
Generate Html 0
SaveChanges (1) 5
Render Body 0
Render Sidebar 1