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
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
العربية
chevron_left
Classes
struct
SceneTraceResult
search
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
Tags
crop_din
Triangle
Properties
data_object
Distance
Static Methods
functions
From
menu
Api
Classes
SceneTraceResult
SceneTraceResult
struct
Sandbox
.
sealed
Sandbox.Engine
crop_din
Fields
19
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
Tags
String[]
The tags that the hit shape had
Triangle
int
The triangle index hit, if we hit a mesh
physics shape
data_object
Properties
1
Distance
float
The distance between start and end positions.
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.