s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
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

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