API ReferenceSandbox
public sealed struct Sandbox.Plane
Represents a plane.
Constructors
Showing 3 constructors
No results match this filter.
Methods
Showing 11 methods
public float GetDistance(Vector3 point)
Returns the distance from this plane to given point.
public static System.Nullable`1<Vector3> GetIntersection(Sandbox.Plane vp1, Sandbox.Plane vp2, Sandbox.Plane vp3)
Gets the intersecting point of the three planes if it exists. If the planes don't all intersect will return null.
public System.Nullable`1<Vector3> Trace(Ray ray, bool twosided = False, double maxDistance = 1.7976931348623157E+308)
Trace a Ray against this plane
Parameters
ray: The origin and direction to trace fromtwosided: If true we'll trace against the underside of the plane too. Default: FalsemaxDistance: The maximum distance from the ray origin to trace Default: 1.7976931348623157E+308
Returns
The hit position on the ray. Or null if we didn't hit.
No results match this filter.
Properties
Showing 2 properties
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.System |
| Doc ID | T:Sandbox.Plane |