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
PhysicsTraceResult
chevron_left
Classes
struct
PhysicsTraceResult
search
Fields
crop_din
Body
crop_din
Direction
crop_din
EndPosition
crop_din
Fraction
crop_din
Hit
crop_din
HitPosition
crop_din
Normal
crop_din
Shape
crop_din
StartedSolid
crop_din
StartPosition
crop_din
Surface
crop_din
Triangle
Properties
data_object
Bone
data_object
Distance
remove_circle
Tags
Methods
functions
HasTag
PhysicsTraceResult
struct
Sandbox
.
sealed
Sandbox.Engine
crop_din
Fields
12
Body
PhysicsBody
The physics object that was hit, if any
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
Hit
bool
Whether the trace hit something or not
HitPosition
Vector3
The hit position of the trace
Normal
Vector3
The hit surface normal (direction vector)
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
3
Bone
int
The id of the hit bone (either from hitbox or physics shape)
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.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.