Building a Particle Simulation Physics Engine in C++ from Scratch

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024

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

  • @sama32lambda
    @sama32lambda หลายเดือนก่อน +2

    Love the chill music

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

    This video, and the whole channel is hidden gem. Absolutely amazing. And I'm proud to be one of 29 people who subscribe to this channel and understand this video and even enjoy it.
    Thank you very much!!

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

      Thanks for watching, really appreciate it!

  • @xanterrx9741
    @xanterrx9741 หลายเดือนก่อน +3

    Great video , I hope you will post more

  • @juanhurtado35
    @juanhurtado35 หลายเดือนก่อน +2

    Great!

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

    Nice video, im working on a nbody simulation using the Barnes Hut algo.
    I suggest you explore that field, its very interesting :)

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

      Yes, it's really nice. I'm looking forward to reading more about it and maybe implementing some cool stuff. Thanks for watching and your suggestion

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

    How does the simulation still work when you misspelled distance on line 29 at 7:32?

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

      because he kept misspelling it.
      as you can see, he doesn't use an already defined variable.
      He does define a new variable named "distatnce"
      and each time he used that variable, he kept using that name, never correcting it, but despite that, the variable is correct, because it exists.

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

      @@jkf16m96 - I see my mi8stake now, I didn't realize he was calling a variable until I went back and looked at it again, I thought he was calling a function, sorry for the confusion...

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

    Honest question, is C++ better for coding this than python and why?

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

      The reason behind it is that I like writing code in c++, but to be honest:
      C++ generally offers better performance than Python because it's a compiled language. In physics simulations (like Verlet integration), which involve a lot of mathematical calculations, performance is crucial. C++ gives you control over memory management, which can lead to optimized, faster code.

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

      @@FelipesCoding thank you for your answer. I appreciate it. I tried learning c++. Do you have any tips or courses I could try to master the basics?

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

      What always worked for me was finding a project that interests you (one that's not too easy compared to your programming level but also not too hard) and learning programming (c++) while working on it.

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

      @@FelipesCoding thank you for your recommendation. I will give it a go. I will think I will start with just a random number calculator project and then go from there. I mainly use Python for statistical analysis, but I am interested in getting more into programming and creating interesting things like you created.