s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
GizmoHitbox
chevron_left
Classes
class
GizmoHitbox
Properties
data_object
CanInteract
data_object
Debug
data_object
DepthBias
Methods
functions
AddPotentialLine
functions
BBox
functions
Circle
functions
LineScope
functions
Model
functions
Sphere
functions
Sprite
functions
TrySetHovered
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
.
sealed
Sandbox.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.