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