s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Common Structs
Frustum
chevron_left Common Structs
struct
Frustum

Constructors

functionsFrustum

Fields

crop_dinBottomPlanecrop_dinFarPlanecrop_dinLeftPlanecrop_dinNearPlanecrop_dinRightPlanecrop_dinTopPlane

Methods

functionsGetBBoxfunctionsGetCornerfunctionsIsInsidefunctionsScaled

Static Methods

functionsFromCorners
Frustum
Represents a frustum.
struct Sandbox .
sealedSandbox.System

build Constructors 1

Frustum (right, left, top, bottom, near, far)
Creates a frustum from 6 planes.

crop_din Fields 6

BottomPlane
Plane
Bottom plane of the frustum, pointing inwards.
FarPlane
Plane
Far plane of the frustum, pointing inwards.
LeftPlane
Plane
Left plane of the frustum, pointing inwards.
NearPlane
Plane
Near plane of the frustum, pointing inwards.
RightPlane
Plane
Right plane of the frustum, pointing inwards.
TopPlane
Plane
Top plane of the frustum, pointing inwards.

functions Methods 4

GetBBox ()
BBox
Returns the AABB of this frustum.
GetCorner (i)
Nullable`1
Returns the corner point of one of the 8 corners. This may return null if i is > 7 or the frustum is invalid.
IsInside (point)
bool
Returns whether the given point is inside this frustum.
Scaled (scale, cameraPosition, perspective)
Frustum
Returns a frustum scaled around its view center.

functions Static Methods 1

FromCorners (tl, tr, br, bl, near, far)
Frustum
Create a frustum from four corner rays. These rays commonly come from SceneCamera.GetRay.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter