TracerEffectclass
A line effect that travels from this component's position to `Sandbox.TracerEffect.EndPoint` - a bullet tracer or beam. Drives a `Sandbox.SceneLineObject` and an optional light that travels with the line. Implements `Sandbox.ITargetedEffect` so a weapon model can aim it at the hit point.
Constructors1
Showing 1 constructors
public TracerEffect()
No results match this filter.
Methods2
Showing 2 methods
public virtual sealed void SetStartPoint(Sandbox.SceneAnchor start)
`Sandbox.ITargetedEffect`: where the line starts from.
| Parameter | Type | Description |
|---|---|---|
| start | SceneAnchor | — |
void—public virtual sealed void SetTarget(Sandbox.SceneAnchor target)
`Sandbox.ITargetedEffect`: the destination the line travels to.
| Parameter | Type | Description |
|---|---|---|
| target | SceneAnchor | — |
void—No results match this filter.
Properties15
Showing 15 properties
public bool Sandbox.TracerEffect.CastShadows { get; set; }
The line casts shadows.
bool—public float Sandbox.TracerEffect.DistancePerSecond { get; set; }
How fast the line travels, in units per second.
float—public bool Sandbox.TracerEffect.EnableLight { get; set; }
A point light that travels with the line.
bool—public Sandbox.SceneLineObject.CapStyle Sandbox.TracerEffect.EndCap { get; set; }
Cap shape at the tail end of the line.
public Sandbox.SceneAnchor Sandbox.TracerEffect.EndPoint { get; set; }
Where the line travels to - a fixed world position, or anchored to an object it follows.
public float Sandbox.TracerEffect.Length { get; set; }
Length of the visible line.
float—public Sandbox.Gradient Sandbox.TracerEffect.LightColor { get; set; }
Light colour over the travel - 0 at the start, 1 at the end point.
public float Sandbox.TracerEffect.LightPosition { get; set; }
Where along the visible line the light sits - 0 the leading edge, 1 the tail.
float—public Sandbox.Curve Sandbox.TracerEffect.LightRadius { get; set; }
Light radius over the travel - 0 at the start, 1 at the end point.
public Sandbox.Gradient Sandbox.TracerEffect.LineColor { get; set; }
Colour along the line - 0 is the leading edge, 1 the tail.
public Sandbox.Curve Sandbox.TracerEffect.LineWidth { get; set; }
Width along the line - 0 is the leading edge, 1 the tail.
public Sandbox.Material Sandbox.TracerEffect.Material { get; set; }
Material for the line. Empty uses the default line material.
public bool Sandbox.TracerEffect.Opaque { get; set; }
Render the line opaque rather than blended.
bool—public Sandbox.SceneLineObject.CapStyle Sandbox.TracerEffect.StartCap { get; set; }
Cap shape at the leading end of the line.
public float Sandbox.TracerEffect.StartDistance { get; set; }
How far along the travel the line starts - skips the stretch right out of the muzzle.
float—No results match this filter.