Effect Manager
Manages vehicle visual effects: exhaust particles, lighting, skidmarks, and surface particles.
Overview
EffectManager coordinates effect subsystems (exhaust, lights, skidmarks, particles) that respond to vehicle state and wheel conditions.
Effects trigger automatically based on vehicle state. LOD-aware with distance culling for performance. Each effect can be enabled/disabled and configured individually.
Available Effects
ExhaustFlash
Brief bright flashes from the exhaust pipe, synchronized with engine firing cycles and backfire events. Intensity scales with engine load.
See: ExhaustFlash
ExhaustSmoke
Exhaust smoke particle systems that emit from exhaust pipe positions. Smoke density and opacity vary based on engine load, temperature, and RPM.
See: ExhaustSmoke
LightsManager
Central controller for all vehicle lighting systems including headlights, brake lights, turn signals, reverse lights, and hazard warning systems. Manages automatic state switching based on vehicle operation.
See: LightsManager
SkidmarkManager
Real-time skidmark generation and rendering based on wheel slip conditions. Creates persistent tire marks on surfaces when lateral or longitudinal slip exceeds thresholds.
See: SkidmarkManager
SurfaceParticleManager
Surface-specific particle effects such as dust, dirt, water splashes, and snow displacement. Effects are automatically selected based on the surface type detected by the ground detection system. Intensity scales with wheel speed and slip.
VehicleComponent Integration
Effect system uses VehicleComponents - each effect can be enabled/disabled, have LOD set, and follows the standard lifecycle.
Effects with "manager" in the name manage multiple instances of the effect, usually one for each wheel (e.g., skidmarks, surface particles).