s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Common Structs
Frustum
chevron_left Common Structs
struct
Frustum

Constructors

functionsFrustum

Fields

crop_dinBottomPlanecrop_dinFarPlanecrop_dinLeftPlanecrop_dinNearPlanecrop_dinRightPlanecrop_dinTopPlane

Methods

functionsGetBBoxfunctionsGetCornerfunctionsIsInside

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 3

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.

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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter