# Sandbox.PhysicsTraceBuilder

- Kind: struct
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Methods

- [`Body`](/api/Sandbox.PhysicsTraceBuilder/Body): Casts a PhysicsBody from its current position and rotation to desired end point.
- [`Box`](/api/Sandbox.PhysicsTraceBuilder/Box): Casts a box from point A to point B.
- [`Capsule`](/api/Sandbox.PhysicsTraceBuilder/Capsule): Casts a capsule
- [`Cone`](/api/Sandbox.PhysicsTraceBuilder/Cone): Casts a cone (base at bottom, apex at top).
- [`Cylinder`](/api/Sandbox.PhysicsTraceBuilder/Cylinder): Casts a cylinder
- [`FromTo`](/api/Sandbox.PhysicsTraceBuilder/FromTo): Sets the start and end positions of the trace request
- [`HitTriggers`](/api/Sandbox.PhysicsTraceBuilder/HitTriggers): Include triggers in the trace
- [`HitTriggersOnly`](/api/Sandbox.PhysicsTraceBuilder/HitTriggersOnly): Only hit triggers
- [`IgnoreDynamic`](/api/Sandbox.PhysicsTraceBuilder/IgnoreDynamic): Ignore dynamic objects in the trace
- [`IgnoreKeyframed`](/api/Sandbox.PhysicsTraceBuilder/IgnoreKeyframed): Ignore keyframed objects in the trace
- [`IgnoreStatic`](/api/Sandbox.PhysicsTraceBuilder/IgnoreStatic): Ignore static objects in the trace
- [`Radius`](/api/Sandbox.PhysicsTraceBuilder/Radius): Makes this trace a sphere of given radius. Zero (or less) is ignored - the trace keeps its current shape (a plain ray if none was set).
- [`Ray`](/api/Sandbox.PhysicsTraceBuilder/Ray): Casts a ray from point A to point B.
- [`Rotated`](/api/Sandbox.PhysicsTraceBuilder/Rotated): Sets the start rotation of the trace request
- [`Run`](/api/Sandbox.PhysicsTraceBuilder/Run): Run the trace and return the result. The result will return the first hit.
- [`RunAgainstBBox`](/api/Sandbox.PhysicsTraceBuilder/RunAgainstBBox): Traces only against the given bounding box at the specified transform.
- [`RunAgainstCapsule`](/api/Sandbox.PhysicsTraceBuilder/RunAgainstCapsule): Traces only against the given capsule at the specified transform.
- [`RunAgainstSphere`](/api/Sandbox.PhysicsTraceBuilder/RunAgainstSphere): Traces only against the given sphere at the specified transform.
- [`RunAll`](/api/Sandbox.PhysicsTraceBuilder/RunAll): Run the trace and return all hits as a result.
- [`Size`](/api/Sandbox.PhysicsTraceBuilder/Size): Makes this trace an axis aligned box of given size. Extracts mins and maxs from the Bounding Box.
- [`Sphere`](/api/Sandbox.PhysicsTraceBuilder/Sphere): Casts a sphere from point A to point B.
- [`Sweep`](/api/Sandbox.PhysicsTraceBuilder/Sweep): Sweeps each [PhysicsShape](/api/Sandbox.PhysicsShape) of given PhysicsBody and returns the closest collision. Does not support Mesh PhysicsShapes. Basically 'hull traces' but with physics shapes. Same as tracing a body but allows rotation to change during the sweep.
- [`UseHitPosition`](/api/Sandbox.PhysicsTraceBuilder/UseHitPosition): Compute hit position.
- [`WithAllTags`](/api/Sandbox.PhysicsTraceBuilder/WithAllTags): Only return with all of these tags
- [`WithAnyTags`](/api/Sandbox.PhysicsTraceBuilder/WithAnyTags): Only return entities with any of these tags
- [`WithCollisionRules`](/api/Sandbox.PhysicsTraceBuilder/WithCollisionRules): Use the collision rules of the given tag.
- [`WithoutTag`](/api/Sandbox.PhysicsTraceBuilder/WithoutTag): Only return without this tag
- [`WithoutTags`](/api/Sandbox.PhysicsTraceBuilder/WithoutTags): Only return without any of these tags
- [`WithTag`](/api/Sandbox.PhysicsTraceBuilder/WithTag): Only return entities with this tag. Subsequent calls to this will add multiple requirements and they'll all have to be met (ie, the entity will need all tags).
