# Sandbox.PhysicsTraceResult

- Kind: struct
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Fields

- [`Body`](/api/Sandbox.PhysicsTraceResult/Body): The physics object that was hit, if any
- [`Direction`](/api/Sandbox.PhysicsTraceResult/Direction): The direction of the trace ray
- [`EndPosition`](/api/Sandbox.PhysicsTraceResult/EndPosition): The end or hit position of the trace
- [`Fraction`](/api/Sandbox.PhysicsTraceResult/Fraction): A fraction [0..1] of where the trace hit between the start and the original end positions
- [`Hit`](/api/Sandbox.PhysicsTraceResult/Hit): Whether the trace hit something or not
- [`HitPosition`](/api/Sandbox.PhysicsTraceResult/HitPosition): The hit position of the trace
- [`Normal`](/api/Sandbox.PhysicsTraceResult/Normal): The hit surface normal (direction vector)
- [`Shape`](/api/Sandbox.PhysicsTraceResult/Shape): The physics shape that was hit, if any
- [`StartedSolid`](/api/Sandbox.PhysicsTraceResult/StartedSolid): Whether the trace started in a solid
- [`StartPosition`](/api/Sandbox.PhysicsTraceResult/StartPosition): The start position of the trace
- [`Surface`](/api/Sandbox.PhysicsTraceResult/Surface): The physical properties of the hit surface
- [`Triangle`](/api/Sandbox.PhysicsTraceResult/Triangle): The triangle index hit, if we hit a mesh [physics shape](/api/Sandbox.PhysicsShape)

## Properties

- [`Bone`](/api/Sandbox.PhysicsTraceResult/Bone): The id of the hit bone (either from hitbox or physics shape)
- [`Distance`](/api/Sandbox.PhysicsTraceResult/Distance): The distance between start and end positions.
- [`Tags`](/api/Sandbox.PhysicsTraceResult/Tags): The tags that the hit shape had.

## Methods

- [`HasTag`](/api/Sandbox.PhysicsTraceResult/HasTag): Returns true if the hit shape has this tag.
