NWH Aerodynamics
Search Results for

    Show / Hide Table of Contents

    Class CrashAircraftSoundComponent

    Sound of vehicle crashing into an object. Supports multiple audio clips of which one will be chosen at random each time this effect is played.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    AircraftSoundComponentBehaviour
    CrashAircraftSoundComponent
    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.Initialize(bool, bool)
    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]
    public class CrashAircraftSoundComponent : AircraftSoundComponentBehaviour

    Fields

    | Edit this page View Source

    pitchRandomness

    Different random pitch in range [basePitch + (1 +- pitchRandomness)] is set each time a collision happens.

    Declaration
    [Range(0, 0.5)]
    [Tooltip("Different random pitch in range [basePitch + (1 +- pitchRandomness)] is set each time a collision happens.")]
    public float pitchRandomness
    Field Value
    Type Description
    float
    | Edit this page View Source

    velocityMagnitudeEffect

    Higher values result in collisions getting louder for the given collision velocity magnitude.

    Declaration
    [Range(0, 5)]
    [Tooltip("Higher values result in collisions getting louder for the given collision velocity magnitude.")]
    public float velocityMagnitudeEffect
    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

    LoopOnAwake()

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

    PlayCollisionSound()

    Declaration
    public void PlayCollisionSound()
    | Edit this page View Source

    PlayOnAwake()

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

    RaiseCollisionFlag(Collision)

    Declaration
    public void RaiseCollisionFlag(Collision collision)
    Parameters
    Type Name Description
    Collision collision
    | 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