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
GizmoHitbox
chevron_left Classes
class
GizmoHitbox

Properties

data_objectCanInteractdata_objectDebugdata_objectDepthBias

Methods

functionsAddPotentialLinefunctionsBBoxfunctionsCirclefunctionsLineScopefunctionsModelfunctionsSpherefunctionsSpritefunctionsTrySetHovered
GizmoHitbox
Contains functions to add objects to the immediate mode Scene. This is an instantiable class so it's possible to add extensions.
class Sandbox.Gizmo .
sealedSandbox.Engine

data_object Properties 3

CanInteract
bool
Whether or not drawn gizmos can be interacted with. Only affects gizmos in the current scope.
Debug
bool
DepthBias
float

functions Methods 8

AddPotentialLine (p0, p1, thickness)
If we're in a hitbox linescope we'll distance this test vs the current ray. If not, we'll return immediately. This is automatically called when rendering lines
BBox (bounds)
A bounding box hitbox
Circle (center, forward, outerRadius, innerRadius)
A 2d circle hitbox, on a plane
LineScope ()
IDisposable
Start a line scope. Any drawn lines should become a hitbox during this scope.
Model (model)
A model hitbox
Sphere (sphere)
A sphere hitbox
Sprite (center, size, worldspace)
A 2d sprite hitbox
TrySetHovered (distance)
If this distance is closer than our previous best, this path will become the hovered path
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