# Sandbox.TracerEffect

A line effect that travels from this component's position to [Sandbox.TracerEffect.EndPoint](/api/Sandbox.TracerEffect/EndPoint) - a bullet
tracer or beam. Drives a [Sandbox.SceneLineObject](/api/Sandbox.SceneLineObject) and an optional light that travels with the
line. Implements [Sandbox.ITargetedEffect](/api/Sandbox.ITargetedEffect) so a weapon model can aim it at the hit point.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Renderer](/api/Sandbox.Renderer)
- Modifiers: sealed

## Constructors

- [`TracerEffect`](/api/Sandbox.TracerEffect/.ctor)

## Properties

- [`CastShadows`](/api/Sandbox.TracerEffect/CastShadows): The line casts shadows.
- [`DistancePerSecond`](/api/Sandbox.TracerEffect/DistancePerSecond): How fast the line travels, in units per second.
- [`EnableLight`](/api/Sandbox.TracerEffect/EnableLight): A point light that travels with the line.
- [`EndCap`](/api/Sandbox.TracerEffect/EndCap): Cap shape at the tail end of the line.
- [`EndPoint`](/api/Sandbox.TracerEffect/EndPoint): Where the line travels to - a fixed world position, or anchored to an object it follows.
- [`Length`](/api/Sandbox.TracerEffect/Length): Length of the visible line.
- [`LightColor`](/api/Sandbox.TracerEffect/LightColor): Light colour over the travel - 0 at the start, 1 at the end point.
- [`LightPosition`](/api/Sandbox.TracerEffect/LightPosition): Where along the visible line the light sits - 0 the leading edge, 1 the tail.
- [`LightRadius`](/api/Sandbox.TracerEffect/LightRadius): Light radius over the travel - 0 at the start, 1 at the end point.
- [`LineColor`](/api/Sandbox.TracerEffect/LineColor): Colour along the line - 0 is the leading edge, 1 the tail.
- [`LineWidth`](/api/Sandbox.TracerEffect/LineWidth): Width along the line - 0 is the leading edge, 1 the tail.
- [`Material`](/api/Sandbox.TracerEffect/Material): Material for the line. Empty uses the default line material.
- [`Opaque`](/api/Sandbox.TracerEffect/Opaque): Render the line opaque rather than blended.
- [`StartCap`](/api/Sandbox.TracerEffect/StartCap): Cap shape at the leading end of the line.
- [`StartDistance`](/api/Sandbox.TracerEffect/StartDistance): How far along the travel the line starts - skips the stretch right out of the muzzle.

## Methods

- [`SetStartPoint`](/api/Sandbox.TracerEffect/SetStartPoint): [Sandbox.ITargetedEffect](/api/Sandbox.ITargetedEffect): where the line starts from.
- [`SetTarget`](/api/Sandbox.TracerEffect/SetTarget): [Sandbox.ITargetedEffect](/api/Sandbox.ITargetedEffect): the destination the line travels to.
