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
Classes
Cone
chevron_left Classes
struct
Cone

Constructors

functionsCone

Fields

crop_dinCenterAcrop_dinCenterBcrop_dinRadiusAcrop_dinRadiusB

Properties

data_objectBoundsdata_objectRandomPointInsidedata_objectRandomPointOnEdge

Methods

functionsContainsfunctionsGetEdgeDistance
Cone
A tapered shape between two points with a radius at each end. Supports cones and cylinders, with flat ends.
struct
sealedSandbox.System

build Constructors 1

Cone (a, b, ra, rb)
A tapered shape between two points with a radius at each end. Supports cones and cylinders, with flat ends.

crop_din Fields 4

CenterA
Vector3
Start point.
CenterB
Vector3
End point.
RadiusA
float
Radius at the start.
RadiusB
float
Radius at the end.

data_object Properties 3

Bounds
BBox
Bounding box that contains the shape.
RandomPointInside
Vector3
Get a random point inside.
RandomPointOnEdge
Vector3
Get a random point on the surface.

functions Methods 2

Contains (p)
bool
Check if a point is inside.
GetEdgeDistance (p)
float
Distance from a point to the surface.
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