Physics Simulations With Python and PyMunk

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

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

  • @matiwan3
    @matiwan3 2 года назад +9

    You are absolutely amazing with this wide math pyhysics and programming knowledge. This aspects bringed together makes you fantastic programme. Thanks Tim

  • @philosopherPsy
    @philosopherPsy Год назад

    The teacher's lectures are much more efficient and easier to understand than I( a beginner) read a whole book to study.
    Additionally, I checked by entering the code while watching the video.
    This is already the third time and has been done so cleanly without any errors. I followed along while watching your video about the solar system and Jupiter(Planet_Simulation with gravity effect) a few days ago.
    You inspire me really!
    Thank you for the great lecture!!

  • @leonardsmith9870
    @leonardsmith9870 2 года назад +95

    Can I use this to simulate my parents being proud of me?

  • @dede-kw1jm
    @dede-kw1jm 2 года назад +2

    It's a rare experience to watch such clear thinking. I also debugged the same problems as you before watching how you fixed them. Major difference in time but I'm happy I found the errors. Feeling very inspired, thanks Tim!

  • @salarshahryari4843
    @salarshahryari4843 2 года назад +4

    I really enjoy these physics simulations... please do more... thanks

  • @kitgary
    @kitgary 2 года назад +1

    This guy is absolutely a genius! I wish I had his skills at his age!

  • @ishaandugar7896
    @ishaandugar7896 2 года назад +7

    Tim, take this up as a challenge and perform fluid simulation using python!

  • @eta9605
    @eta9605 2 года назад +4

    A video about creating a Lap Time Simulator (for a race car in a given circuit) in python would be interesting. These physics videos are cool.

  • @futurism010
    @futurism010 2 года назад +3

    Your videos are always TRUE! Love all contents you made...

  • @Betabdullah
    @Betabdullah 2 года назад +3

    Thanks for your videos

  • @shambles-io
    @shambles-io 2 года назад +1

    I'd love simulations that help visualize electromagnetism concepts! Things like electric/magnetic fields, propagating waves, solenoids, etc. Having simulations that can greatly help in visualizing these concepts!

  • @Biokompott
    @Biokompott Год назад +1

    Thanks a lot! Really helpful tutorial!
    By the way: If somebody else run into "ValueError: cannot convert float NaN to integer" - I forgot to add mass to the structure. It seems you HAVE to set a mass here.

  • @mastershooter64
    @mastershooter64 2 года назад +17

    i remember watching a pygame tutorial by tim, that's when i had the idea to make my own physics engine lol it was super fun, i haven't finished it yet, i just halted it

    • @kklol07
      @kklol07 2 года назад

      wow, where;s your project now

    • @CAIJAyt
      @CAIJAyt 4 месяца назад

      We need to know!

  • @mentefria98
    @mentefria98 2 года назад +7

    I wish I had this video when I was studying physics at college

  • @dynamics9000
    @dynamics9000 2 года назад +9

    a worth watching channel, very inspiring and thanks for sharing wonderful videos. Subbed and liked ! a fellow creator

  • @davidleaskhome
    @davidleaskhome Год назад

    This video answered so many questions for me..thank you! There is not a lot of details on Pymunk (that are incomprehensible like the pymunk site) so more examples in a video would be fantastic. I am trying to build a pinball game from an image of a classic pinball game - that would demonstrate a lot of pymunk uses.

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

    This pymunk simulation is cool. Please do more.
    I'd like to learn enough to create an object that has mutiple connected points with an attached stylus that uses a fourier mathematical superposition formula (comple x plane) to draw a wave in normal space.

  • @vmartme
    @vmartme Год назад

    Thank you so much!

  • @devangkhatri4772
    @devangkhatri4772 2 года назад +3

    hello tim. so i did everything till 21:39 and when i ran the program , it crashed with the error "TypeError: 'Vec2d ;' object is not callable.
    i then tried to fix it in a few ways , changing names of the fnctions and then trying different values in the function and its still not fixed. I tried to look up on google too to try to see the documentation and understand whats going on but still had no idea. could you please help me fix it?

  • @GordonFreeman69
    @GordonFreeman69 Год назад

    Nice, that was fun!

  • @excelwithmark
    @excelwithmark 2 года назад

    This looks a great library. I thought when you rotated the camera everything would tip out

  • @TheEnderOcelot
    @TheEnderOcelot 2 года назад +1

    21:35 'Circle' object has no attribute 'add' line 22 why???

  • @educateyourselfdaily3196
    @educateyourselfdaily3196 2 года назад

    Hey Tim 👍❤️ highly expressed

  • @Marcelo-yp9uz
    @Marcelo-yp9uz 2 года назад

    Great as always

  • @ssholum
    @ssholum 2 года назад

    35:00 I've seen enough Super Mario 64 speedrun videos to know where this is going.

  • @moleexr639
    @moleexr639 10 месяцев назад

    thansk Tim!

  • @matus1976
    @matus1976 2 года назад +3

    'The ball shoots the the wall when the velocity is too high because the frame update hasn't checked for the collision before the ball moves past the wall' ... Dang that sounds suspiciously alot like quantum tunneling lol.

    • @CAIJAyt
      @CAIJAyt 4 месяца назад +1

      Flash, take notes

  • @educateyourselfdaily3196
    @educateyourselfdaily3196 2 года назад

    Very updated Video 📸

  • @palantea1367
    @palantea1367 2 года назад

    28:56 you mean, you need conservation of momentum, not elasticity in order for the ball to "bounce".

  • @learnwithkhensani24
    @learnwithkhensani24 2 года назад

    Great video Tim

  • @hirobumi6433
    @hirobumi6433 2 года назад

    Excellent tutorial! But I think we can skip the angle and distance calculation and just write :
    force_x = (press_pos1[0] - press_pos2[0]) * 100
    force_y = (press_pos1[1] - press_pos2[1]) * 100

  • @GoodLife-ru8di
    @GoodLife-ru8di 2 года назад

    34:41 That's escape velocity lolz

  • @timeWaster76
    @timeWaster76 11 месяцев назад

    Brilliant !

  • @chanmeida1726
    @chanmeida1726 2 года назад +1

    @Tech With Tim

    Thanks for this video. Can you show us how to make the flipper game too?

  • @batista98854
    @batista98854 2 года назад +1

    Thank you from India.

  • @envy_coppr2146
    @envy_coppr2146 2 года назад

    Great video Tim! I was just wondering, how do you get the orange overlay on your pygame window instead of white?

  • @moleexr639
    @moleexr639 10 месяцев назад

    DId PyMunk can do destory ground effect, like a ball hit ground, the ground make a hole

  • @klimentradoev7404
    @klimentradoev7404 2 года назад +1

    Amazing! I was just wondering if Pymunk / Pygame have any ability to deform an object under the exertion of a force / gravity? Would you make a video for this case?

  • @tanmaypatel4152
    @tanmaypatel4152 2 года назад +2

    'THIS TUTORIAL IS NOT FOR BEGINNERS' *Proceeds to explain what a break statement is...*

  • @kartikchauhan2778
    @kartikchauhan2778 2 года назад +1

    Hello Tim, can you please make a ds algo series in python

  • @krishgaikwad6108
    @krishgaikwad6108 2 года назад

    Cool, can u make a video about making a game using both pygame and pymunk

  • @ωξΤ
    @ωξΤ 2 года назад

    finally a nice video

  • @4B3K_
    @4B3K_ 2 года назад

    Hi, nice video! I have a question, is there a way to add the rope when mouse down and when mouse up it's removed? I have tried to do it but it doesn't work...

  • @mihajlomilovanovic003
    @mihajlomilovanovic003 2 года назад

    What do you think about programming language Pascal?

  • @mml.01
    @mml.01 2 года назад +2

    Wow that's very useful I was worried about how to make this simulation and test an AI creature in it

  • @kevinflanigan8653
    @kevinflanigan8653 2 года назад

    Fun!

  • @pravachanpatra4012
    @pravachanpatra4012 2 года назад +3

    Tim can you make DJANGO tutorials

    • @hypermeero4782
      @hypermeero4782 2 года назад

      He already did before

    • @pravachanpatra4012
      @pravachanpatra4012 2 года назад

      @@hypermeero4782 nah I’m talking about more Django apps, like a social media clone, chat application etc

  • @krystacassidy5684
    @krystacassidy5684 2 года назад

    So cool

  • @isidoka6656
    @isidoka6656 25 дней назад

    I keep getting 'no module named pymunk', even though I installed it correctly with pip. It's a common issue, I googled it and many people have the same problem, but nothing seems to resolve it. Please help

  • @smallears1234
    @smallears1234 Год назад

    Can this be used to create a model rocket simulator?

  • @CCapsule
    @CCapsule 2 года назад

    Is this something I can put on my resume?

  • @ANNGUYEN-cw7lw
    @ANNGUYEN-cw7lw Год назад

    Hello instructor, I have a question to ask you are: I don't have good logic, I learn math is about just C, Can I become software developer without not good logic ?. Question 2: Can I get a software developer position in enterprise with an associate degree not bachelor degree at USA?

  • @dianacampbell6336
    @dianacampbell6336 2 года назад

    What is the purpose of separately importing "pymunk.pygame_util" when "pymunk" is already imported?

  • @EW-mb1ih
    @EW-mb1ih 2 года назад

    does it work in 3D space?

  • @DevineDarkness
    @DevineDarkness 2 года назад

    I get errors related to pylance. how do I resolve this?

  • @batman---
    @batman--- 2 года назад

    should i download pycharm?

  • @teamtubetv1465
    @teamtubetv1465 2 года назад

    37:32 watch the webcam its kinda sus

  • @krishgaikwad6108
    @krishgaikwad6108 2 года назад +1

    More pymunk plssss

  • @pranavsagar1886
    @pranavsagar1886 2 года назад

    Hey Tim. I purchased your Programming Expert yesterday and the website is not loading properly. I have tried everything. Deleting the cookies and tried to open it in an incognito window. But the Programming expert website is down for no reason. But the Algo Expert Website is working fine. Kindly check about the issue.

    • @bareMinimumExample
      @bareMinimumExample 2 года назад

      Ive also purchased and its working fine for me. Tried just now. Both on pc and on android. I use chrome. I really like the course also, it was beyond expectation

    • @TechWithTim
      @TechWithTim  2 года назад

      Can u try on a different device? I don’t see any issue on my end as well. Please ensure you clear the cache (not just the cookies) and then reloading the website.

  • @prakhardave.10
    @prakhardave.10 2 года назад

    can you provide full code?

  • @ycombinator765
    @ycombinator765 2 года назад

    I love Python more now

  • @batman---
    @batman--- 2 года назад

    what are you coding this on I've tried python IDEL and it didn't work

  • @rishavmitra5732
    @rishavmitra5732 2 года назад

    Tim: does physics simulation
    Also Tim: doesn't know how to spell pendulum 😅

  • @akrzha
    @akrzha 2 года назад

    I like writing code in sublime text, but don't know how to run/give input. Please tell me how to do that.

    • @TechWithTim
      @TechWithTim  2 года назад

      You can’t in sublime

    • @akrzha
      @akrzha 2 года назад

      @@TechWithTim Then how are you running it in your's?

    • @krishgaikwad6108
      @krishgaikwad6108 2 года назад

      @@akrzha run code in Command line by giving the file name OR Look in the Tools menu for Build System and Build.

  • @davidsafro127
    @davidsafro127 2 года назад +2

    nice

  • @EricGonzalez-z6y
    @EricGonzalez-z6y 3 месяца назад

    Blaze Mission

  • @mixshots1801
    @mixshots1801 2 года назад

    bro please make a video on automating whatsapp messages using python or any language

  • @LakendraRiverman-p9p
    @LakendraRiverman-p9p 3 месяца назад

    Farrell Light

  • @cayman_islands
    @cayman_islands 4 месяца назад

    where souce code?

  • @vinayakram5133
    @vinayakram5133 2 года назад +2

    Can u make numpy tutorial

  • @RodneyMeyer-y7t
    @RodneyMeyer-y7t 3 месяца назад

    Monahan Greens

  • @MadgeMerle-x5l
    @MadgeMerle-x5l 3 месяца назад

    Reilly Valley

  • @marketalpha5426
    @marketalpha5426 2 года назад

    Breh... rolling balls kek

  • @RalphGordon-k4b
    @RalphGordon-k4b 3 месяца назад

    Vilma Locks

  • @SheilaConners-e7r
    @SheilaConners-e7r 3 месяца назад

    Evangeline Villages

  • @letsbuildit7640
    @letsbuildit7640 Год назад

    i am noob in pygame 0-0

  • @clusterdriven
    @clusterdriven 2 года назад

    beware long functions

  • @shanno88
    @shanno88 2 года назад

    dude,code available?

  • @HartePayne-y1j
    @HartePayne-y1j 3 месяца назад

    Franecki Union

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

    God bless chatgpt

  • @coolguy7160
    @coolguy7160 2 года назад

    Fourth!