s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
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
search
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.