s&
info
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
explore
Discover Games
category
Workshop
sports_esports
Games
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
menu_book
Learn
docs
Documentation
api
Api Reference
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
SceneTraceResult
chevron_left
Classes
struct
SceneTraceResult
Fields
crop_din
Body
crop_din
Bone
crop_din
Collider
crop_din
Component
crop_din
Direction
crop_din
EndPosition
crop_din
Fraction
crop_din
GameObject
crop_din
Hit
crop_din
Hitbox
crop_din
HitPosition
crop_din
Normal
crop_din
Scene
crop_din
Shape
crop_din
StartedSolid
crop_din
StartPosition
crop_din
Surface
crop_din
Triangle
Properties
data_object
Distance
remove_circle
Tags
Methods
functions
HasTag
Static Methods
functions
From
SceneTraceResult
struct
Sandbox
.
sealed
Sandbox.Engine
crop_din
Fields
18
Body
PhysicsBody
The physics object that was hit, if any
Bone
int
The id of the hit bone (either from hitbox or physics shape)
Collider
Collider
The Collider that was hit
Component
Component
The Component that was hit
Direction
Vector3
The direction of the trace ray
EndPosition
Vector3
The end or hit position of the trace
Fraction
float
A fraction [0..1] of where the trace hit between the start and the original end positions
GameObject
GameObject
The GameObject that was hit
Hit
bool
Whether the trace hit something or not
Hitbox
Hitbox
The hitbox that we hit
HitPosition
Vector3
The hit position of the trace. Requires Sandbox.SceneTrace.UseHitPosition(System.Boolean).
Normal
Vector3
The hit surface normal (direction vector)
Scene
Scene
Shape
PhysicsShape
The physics shape that was hit, if any
StartedSolid
bool
Whether the trace started in a solid
StartPosition
Vector3
The start position of the trace
Surface
Surface
The physical properties of the hit surface
Triangle
int
The triangle index hit, if we hit a mesh
physics shape
data_object
Properties
2
Distance
float
The distance between start and end positions.
Tags
obsolete
String[]
The tags that the hit shape had.
functions
Methods
1
HasTag
(
tag
)
bool
Returns true if the hit shape has this tag.
functions
Static Methods
1
From
(
scene
,
r
)
SceneTraceResult
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.