API ReferenceSandbox
Frustumclass
Represents a frustum.
object→Frustum
Constructors1
Showing 1 constructors
No results match this filter.
Methods7
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.
| Parameter | Type | Description |
|---|---|---|
| tl | Ray | — |
| tr | Ray | — |
| br | Ray | — |
| bl | Ray | — |
| near | float | — |
| far | float | — |
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.
| Parameter | Type | Description |
|---|---|---|
| i | int | — |
No results match this filter.