NWH Aerodynamics
Search Results for

    Show / Hide Table of Contents

    Class EngineRunningAircraftSoundComponent

    Sound of an engine idling.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    AircraftSoundComponentBehaviour
    EngineRunningAircraftSoundComponent
    Inherited Members
    AircraftSoundComponentBehaviour.audioMixerGroup
    AircraftSoundComponentBehaviour.basePitch
    AircraftSoundComponentBehaviour.baseVolume
    AircraftSoundComponentBehaviour.clips
    AircraftSoundComponentBehaviour.container
    AircraftSoundComponentBehaviour.aircraftController
    AircraftSoundComponentBehaviour.mixer
    AircraftSoundComponentBehaviour.sources
    AircraftSoundComponentBehaviour.Clip
    AircraftSoundComponentBehaviour.Clips
    AircraftSoundComponentBehaviour.RandomClip
    AircraftSoundComponentBehaviour.Source
    AircraftSoundComponentBehaviour.Sources
    AircraftSoundComponentBehaviour.Enable()
    AircraftSoundComponentBehaviour.Disable()
    AircraftSoundComponentBehaviour.LoadDefaultAudioMixer()
    AircraftSoundComponentBehaviour.Reset()
    AircraftSoundComponentBehaviour.SetAudioSourceDefaults(AudioSource, bool, bool, float, AudioClip)
    AircraftSoundComponentBehaviour.AddSourcesToMixer()
    AircraftSoundComponentBehaviour.GetPitch()
    AircraftSoundComponentBehaviour.GetVolume()
    AircraftSoundComponentBehaviour.Play()
    AircraftSoundComponentBehaviour.Play(int)
    AircraftSoundComponentBehaviour.SetPitch(float, int)
    AircraftSoundComponentBehaviour.SetPitch(float)
    AircraftSoundComponentBehaviour.SetVolume(float, int)
    AircraftSoundComponentBehaviour.SetVolume(float, AudioSource)
    AircraftSoundComponentBehaviour.SetVolume(float)
    AircraftSoundComponentBehaviour.Stop()
    AircraftSoundComponentBehaviour.Stop(int)
    Namespace: NWH.Aerodynamics.AircraftController.Sound.SoundComponents
    Assembly: NWH.Aerodynamics.dll
    Syntax
    [Serializable]
    [RequireComponent(typeof(AircraftEngineBase))]
    public class EngineRunningAircraftSoundComponent : AircraftSoundComponentBehaviour

    Fields

    | Edit this page View Source

    exhaustAirPitch

    Pitch of the exhaust air/turbo sound.

    Declaration
    [Range(0, 5)]
    [Tooltip("Pitch of the exhaust air/turbo sound.")]
    public float exhaustAirPitch
    Field Value
    Type Description
    float
    | Edit this page View Source

    exhaustAirVolumeRange

    Volume variation range for exhaust air sound based on RPM.

    Declaration
    [Range(0, 1)]
    [Tooltip("Volume variation range for exhaust air sound based on RPM.")]
    public float exhaustAirVolumeRange
    Field Value
    Type Description
    float
    | Edit this page View Source

    maxDistortion

    Distortion at maximum engine load.

    Declaration
    [Range(0, 1)]
    [Tooltip("Distortion at maximum engine load.")]
    public float maxDistortion
    Field Value
    Type Description
    float
    | Edit this page View Source

    pitchRange

    Pitch added to the base engine pitch depending on engine RPM.

    Declaration
    [Range(0, 4)]
    [Tooltip("Pitch added to the base engine pitch depending on engine RPM.")]
    public float pitchRange
    Field Value
    Type Description
    float
    | Edit this page View Source

    smoothing

    Smoothing of engine volume.

    Declaration
    [Range(0, 1)]
    [Tooltip("Smoothing of engine volume.")]
    public float smoothing
    Field Value
    Type Description
    float
    | Edit this page View Source

    targetEngine

    Declaration
    public AircraftEngineBase targetEngine
    Field Value
    Type Description
    AircraftEngineBase
    | Edit this page View Source

    volumeRange

    Volume added to the base engine volume depending on engine state.

    Declaration
    [Range(0, 1)]
    [Tooltip("Volume added to the base engine volume depending on engine state.")]
    public float volumeRange
    Field Value
    Type Description
    float

    Methods

    | Edit this page View Source

    Awake()

    Declaration
    public override void Awake()
    Overrides
    AircraftSoundComponentBehaviour.Awake()
    | Edit this page View Source

    GetDefaultClipName()

    Declaration
    public override string GetDefaultClipName()
    Returns
    Type Description
    string
    Overrides
    AircraftSoundComponentBehaviour.GetDefaultClipName()
    | Edit this page View Source

    GetMixerGroupName()

    Declaration
    public override string GetMixerGroupName()
    Returns
    Type Description
    string
    Overrides
    AircraftSoundComponentBehaviour.GetMixerGroupName()
    | Edit this page View Source

    Initialize(bool, bool)

    Initializes the sound component by creating and configuring the audio source.

    Declaration
    public override void Initialize(bool play, bool loop)
    Parameters
    Type Name Description
    bool play

    Whether to start playing immediately.

    bool loop

    Whether the audio should loop.

    Overrides
    AircraftSoundComponentBehaviour.Initialize(bool, bool)
    | Edit this page View Source

    LoopOnAwake()

    Declaration
    public override bool LoopOnAwake()
    Returns
    Type Description
    bool
    Overrides
    AircraftSoundComponentBehaviour.LoopOnAwake()
    | Edit this page View Source

    PlayOnAwake()

    Declaration
    public override bool PlayOnAwake()
    Returns
    Type Description
    bool
    Overrides
    AircraftSoundComponentBehaviour.PlayOnAwake()
    | Edit this page View Source

    Update()

    Declaration
    public void Update()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics