How to add sound to physics collision in Unreal engine 4 & 5 ( so simple )

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ส.ค. 2024
  • Please watch the newest and proper way of doing this here instead : • Add sound to physics c...
    Experience the next generation mobile graphics for free : play.google.co...
    You can download The Fire for Android for free from playstore : play.google.co...

ความคิดเห็น • 30

  • @xweert711
    @xweert711 2 ปีที่แล้ว +10

    one thing to mention; this works exceptionally well on ragdolls, too! You can also use get velocity to determine how hard the ragdoll hits a surface, and then divide it by a smaller number (I personally use 100) to compute how much damage a character should take when they hit a surface.

    • @Mj3DArts
      @Mj3DArts ปีที่แล้ว

      Could you give a hint maybe? i tried it and it just keeps looping in ragdoll?

    • @xweert711
      @xweert711 ปีที่แล้ว +1

      @@Mj3DArts That sounds like you messed up with the velocity to sound volume calculations somewhere. The implementation is pretty much identical; the only thing I did differently was add another calculation to determine fall damage

    • @Mj3DArts
      @Mj3DArts ปีที่แล้ว

      @@xweert711 okay i found out that my Ai character keeps firing of event hits in a loop when they go ragdoll, soo ill have to find out why that is first, but good to know it would work if i didn't have the issue with the event hit on the mesh I reparented from Als to Ai behavior kit and im not using the Als ragdoll but the ai behavior kits ragdoll.. im new to the whole reparenting so maybe i broke it somehow.. thx for the reply anyway tho :)

  • @jackwestwood2810
    @jackwestwood2810 9 หลายเดือนก่อน

    2 Years and still usefull, thanks for the video. I would like to add that you can use a sound CUE and from there add all the sounds you want with the randomnes, you wouldn't need the "Switch on Int" and the "Random Integer" since it would be applied on the sound CUE, you would just need to add it on the "Play sound at location" node in the "sound" asset.

  • @sobeit9407
    @sobeit9407 2 ปีที่แล้ว +3

    this video saved me im naming my first child surin

  • @suetologoHasanskiy05
    @suetologoHasanskiy05 ปีที่แล้ว +3

    Дорогой автор, хочу выразить тебе огромную благодарность за твой ролик, он мне очень помог, спасибо тебе большое, теперь машины в моей игре имеют реалистичный звук столкновений, искренне благодарю!

    • @surinStudio
      @surinStudio  ปีที่แล้ว +1

      Я рад, что смог помочь. Желаю, чтобы ваша игра имела огромный успех.

  • @Test-xt3ys
    @Test-xt3ys 11 หลายเดือนก่อน +1

    Man i loved it thank you!

  • @tyjle
    @tyjle ปีที่แล้ว +1

    Thank you for the vid! Good explanation and gave me a good place to start.

  • @Smokey-A
    @Smokey-A 4 หลายเดือนก่อน

    Old video but a little tip for anyone watching: its a lot easier to setup random sounds inside of the sound cue and then just play the one cue

  • @farrasaris5394
    @farrasaris5394 7 หลายเดือนก่อน +1

    hey, I need help, so I made road barier, and I applied physic, then the physic is working, but when I hit it, the mesh or the actor, not reset to potition as they should.

    • @surinStudio
      @surinStudio  7 หลายเดือนก่อน

      I dont understand, can you explain more ?

  • @holyclaud
    @holyclaud 6 หลายเดือนก่อน +1

    thx man

  • @henrijs1733
    @henrijs1733 ปีที่แล้ว +1

    dude good job on the velocity clamp idea! i wasn't sure how to stop things from making sound while idle.

  • @andrinSky
    @andrinSky 2 ปีที่แล้ว +2

    Can you give us this two sounds too or can you tell me from where you have this two Sounds and the nice Chair? And Thank you very much for this interesting tutorial!!!

    • @surinStudio
      @surinStudio  2 ปีที่แล้ว +1

      I have a motion graphic sounds package which I took this sounds from. you can search for it or in the youtube there are a lot of free to use sound effects that you can download and use. but if you specifically want the sounds I used I can email them to you. just let me know.
      chairs are from quixel bridge. actually all the assets are either from bridge or downloaded from epic marketplace. if you are using UE5 qixel bridge is usable in the engine. if you are using UE4 you need to download bridge separately

  • @geryan
    @geryan ปีที่แล้ว

    thanks for the help!

  • @mgodoi3891
    @mgodoi3891 2 ปีที่แล้ว +2

    Hi, nice tutorial.
    But what if you use a random value for the duration of the delay to play the sound between something like 0.15 and 0.4 seconds to add more randomness?
    I don't know if you will understand. It's just curiosity.

    • @surinStudio
      @surinStudio  2 ปีที่แล้ว

      yeah you could do that ! and this was a great suggestion by the way . thanks for it

  • @darkestdaysvideogame
    @darkestdaysvideogame 4 หลายเดือนก่อน +1

    Does it require scene root? I replaced mine with skeletal mesh long time ago, but I doesn't seem to play anything on event hit

    • @darkestdaysvideogame
      @darkestdaysvideogame 4 หลายเดือนก่อน

      had to check hit events in physics asset of my skeletal mesh, ue5.3

    • @surinStudio
      @surinStudio  4 หลายเดือนก่อน

      It shouldnt. Its based on the location of the mesh not the bp actor location

  • @GokdenizCetin
    @GokdenizCetin 2 ปีที่แล้ว

    Thank you!

  • @jonnyd7190
    @jonnyd7190 2 ปีที่แล้ว +1

    No good result. Need event for reset sound.

    • @surinStudio
      @surinStudio  2 ปีที่แล้ว

      yeah it can get much much better and it really should. thank you for the advice

  • @rozhkovsky_games
    @rozhkovsky_games 10 หลายเดือนก่อน

    Это не реалистичный звук. Более того я ещё не нашёл уроков где бы подробно разбирали реализацию детального звука для физики. Дело в том, что есть большая разница между тем когда объект падает на поверхность и когда объект просто трётся о поверхность при движении. Так вот, за это отвечают разные оси в velocity. За падение отвечает ось Z, а за движение в пространстве по поверхности оси X и Y. Нужно делать отдельные расчеты на ось Z и отдельно устанавливать звуки падения, а на оси X и Y - звуки трения. Причем нужно ставить разные звуки воздействия в зависимости от высоты и силы трения. Почему-то все считают что это реалистично когда звук один и тот же при падении и трении. Урок исключительно базовый и не доработан, как и все физические ассеты в анриле. Развивайте мысль, господа, делайте хорошие игры.

  • @Vioxtar
    @Vioxtar 2 ปีที่แล้ว

    Every time you demonstrated your results, you were speaking, making it impossible to assess the benefits of your approach