Fields

Body The physics object that was hit, if any
Direction The direction of the trace ray
EndPosition The end or hit position of the trace
Fraction A fraction [0..1] of where the trace hit between the start and the original end positions
Hit Whether the trace hit something or not
HitPosition The hit position of the trace
Normal The hit surface normal (direction vector)
Shape The physics shape that was hit, if any
StartedSolid Whether the trace started in a solid
StartPosition The start position of the trace
Surface The physical properties of the hit surface
Tags The tags that the hit shape had
Triangle The triangle index hit, if we hit a mesh <see cref="T:Sandbox.PhysicsShape">physics shape</see>

Properties

Bone The id of the hit bone (either from hitbox or physics shape)
Distance The distance between start and end positions.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.