Secret Gamedev Tricks - Gaussian Random Numbers

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • Code: github.com/zul...
    Alan Zucconi's tutorial: www.alanzuccon...

Комментарии • 17

  • @_silentgnat
    @_silentgnat 6 месяцев назад +7

    Hi I loved vertigo and vertigo 2 :)

  • @golongself
    @golongself 6 месяцев назад +3

    Never thought about this. Thanks for sharing.

  • @comdudeskip
    @comdudeskip 6 месяцев назад +2

    Instead, use(faster and no out-of-bounds or loops & branching), for -1 to just under 1:
    float x = (Random.value + Random.value + Random.value) * 0.666666 - 1
    Or for between 0 and just under 1, use:
    float x = (Random.value + Random.value + Random.value) * 0.333333
    For a less curved distribution, but even faster, just do: Random.value+Random.value.
    This can be adapted for integer random numbers too - just add two or three(or more) integer ranges(starting from 0) that sum to the total you want. The more you add together, the more heavily clumped values are around the middle, and less at the extremes.

  • @USSR-Lenin-Stalin-Forever
    @USSR-Lenin-Stalin-Forever 4 месяца назад

    you best of the best!

  • @Ran_Dum
    @Ran_Dum 6 месяцев назад

    love these!

  • @__hatred
    @__hatred 6 месяцев назад +1

    Hi! When can we expect Vertigo 3? I love your games! 😉

    • @tlpa
      @tlpa 6 месяцев назад

      9 year

    • @magma5267
      @magma5267 5 месяцев назад +1

      There will be no 3, only Vertigo 2 Episode 1 and 2

    • @__hatred
      @__hatred 5 месяцев назад

      @@magma5267 😂

    • @tlpa
      @tlpa 5 месяцев назад

      @@magma5267 Vertigo 2 epistle 3 when

  • @youraveragedom2378
    @youraveragedom2378 6 месяцев назад +1

    This is cool

  • @beardordie5308
    @beardordie5308 6 месяцев назад

    Do one on PID controllers. Thx. ❤

  • @JoshuaSawayn
    @JoshuaSawayn 5 месяцев назад

    Promo_SM ✌️

  • @Fish_Nugget2018
    @Fish_Nugget2018 6 месяцев назад

    cool

  • @KiwiNotBird
    @KiwiNotBird 6 месяцев назад

    What is bro babbaling about

  • @MechabitGames
    @MechabitGames 6 месяцев назад

    cool tip