Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Does sound travel instantly in unity?

Discussion in 'Editor & General Support' started by KennethGames2020, Mar 4, 2020.

  1. KennethGames2020

    KennethGames2020

    Joined:
    Feb 26, 2020
    Posts:
    52
    I would like to simulate a realistic sound system in my game. In real life, a bullet travels faster than the sound of the gunshot. Is this the case in unity? If not how can I make it work that way?
     
  2. z_orochii

    z_orochii

    Joined:
    Mar 8, 2013
    Posts:
    20
    Since Unity always tells you to have only one Audio Listener active per scene, you could just delay your sound by an amount of milliseconds depending on how far the Audio Source is from the listener.

    That's the theoretical guess at least.
     
    MrKtosiek likes this.