s&box docs

public sealed struct Sandbox.Frustum

Represents a frustum.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 7 methods

public static Sandbox.Frustum FromCorners(Ray tl, Ray tr, Ray br, Ray bl, float near, float far)

Create a frustum from four corner rays. These rays commonly come from SceneCamera.GetRay.

public BBox GetBBox()

Returns the AABB of this frustum.

public System.Nullable`1<Vector3> GetCorner(int i)

Returns the corner point of one of the 8 corners. This may return null if i is > 7 or the frustum is invalid.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.System
Doc IDT:Sandbox.Frustum

On this page