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