NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class EffectManager

    Manages vehicle visual effects: exhaust particles, lights, skidmarks, and surface dust/smoke. Effects trigger automatically based on vehicle state and wheel conditions. Each subsystem can be individually configured or disabled. Uses LOD and distance culling.

    Inheritance
    object
    VehicleComponent
    ManagerVehicleComponent
    EffectManager
    Inherited Members
    ManagerVehicleComponent._components
    ManagerVehicleComponent.Components
    ManagerVehicleComponent.VC_Initialize(VehicleController)
    ManagerVehicleComponent.VC_FixedUpdate(float)
    ManagerVehicleComponent.VC_SetDefaults()
    ManagerVehicleComponent.AddAndOnboardNewComponent(VehicleComponent)
    ManagerVehicleComponent.VC_LoadStateFromStateSettings()
    ManagerVehicleComponent.VC_Update(float)
    ManagerVehicleComponent.VC_Enable(bool)
    ManagerVehicleComponent.VC_Disable(bool)
    ManagerVehicleComponent.VC_DrawGizmos()
    ManagerVehicleComponent.VC_Validate(VehicleController)
    ManagerVehicleComponent.UpdateLOD()
    VehicleComponent.state
    VehicleComponent.vehicleController
    VehicleComponent.IsActive
    VehicleComponent.VC_Initialize()
    VehicleComponent.ToggleState()
    Namespace: NWH.VehiclePhysics2.Effects
    Assembly: NWH.VehiclePhysics2.dll
    Syntax
    [Serializable]
    public class EffectManager : ManagerVehicleComponent

    Fields

    exhaustFlash

    Controls exhaust flash effects that create brief bright flashes from the exhaust pipe. Synchronized with engine firing cycles and backfire events.

    Declaration
    public ExhaustFlash exhaustFlash
    Field Value
    Type Description
    ExhaustFlash
    Remarks

    Flash effects provide visual feedback for engine operation intensity and add realism during high RPM situations or engine misfires. Intensity scales with engine load.

    exhaustSmoke

    Manages exhaust smoke particle systems that emit from exhaust pipe positions. Smoke density and opacity vary based on engine load, temperature, and RPM.

    Declaration
    public ExhaustSmoke exhaustSmoke
    Field Value
    Type Description
    ExhaustSmoke
    Remarks

    Smoke effects simulate combustion byproducts with realistic particle behavior. Higher engine loads produce denser smoke, while idle produces minimal emissions.

    lightsManager

    Central controller for all vehicle lighting systems including headlights, brake lights, turn signals, reverse lights, and hazard warning systems.

    Declaration
    [FormerlySerializedAs("lights")]
    public LightsManager lightsManager
    Field Value
    Type Description
    LightsManager
    Remarks

    Manages both functional and decorative vehicle lighting with automatic state switching based on vehicle operation (braking, reversing, signaling). Supports multiple light configurations and intensity levels.

    skidmarkManager

    Handles real-time skidmark generation and rendering based on wheel slip conditions. Creates persistent tire marks on surfaces when lateral or longitudinal slip exceeds thresholds.

    Declaration
    [FormerlySerializedAs("skidmarks")]
    public SkidmarkManager skidmarkManager
    Field Value
    Type Description
    SkidmarkManager
    Remarks

    Skidmarks provide visual feedback for wheel slip intensity and vehicle handling behavior. Marks fade over time and are optimized for performance through mesh combining and culling.

    surfaceParticleManager

    Controls 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.

    Declaration
    public SurfaceParticleManager surfaceParticleManager
    Field Value
    Type Description
    SurfaceParticleManager
    Remarks

    Particle effects enhance immersion by providing appropriate visual feedback for different terrain types. Effect intensity scales with wheel speed and slip, creating realistic interaction with the environment.

    Methods

    FillComponentList()

    Override to populate _components with your child components. Called lazily on first Components access.

    Declaration
    protected override void FillComponentList()
    Overrides
    ManagerVehicleComponent.FillComponentList()

    See Also

    ManagerVehicleComponent
    VehicleController
    ExhaustFlash
    ExhaustSmoke
    LightsManager
    SkidmarkManager
    SurfaceParticleManager
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics