Added: 4 years ago
From: eFFeeMMe
Views: 7,942
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (29)

Sign In or Sign Up now to post a comment!
  • Wow this is quite neat. Is python relatively easy to learn and make simple physics simulations? I'll be taking a general CS course in python soon and I have no experience in programming outside of a little java many years ago. Any suggestions on how to get a good grasp with it?

  • @Lavabug Thanks! Well, Python was my first language, and this physics engine is pretty much the first thing I made with it, because when I started to programming I wanted to make games. As for good tutorials, I didn't really go far beyond the official one, which is very good. To fill the holes it left, I looked at code from other games on the Pygame site. They're far from good code, but interesting. For some good examples of Python in visual applications, look at the Pyglet source code.

  • @Lavabug To sum it up, get the basics from the official tutorial, and then start looking at what others are writing. Open source is great for learning!

  • @eFFeeMMe

    Thanks! Are you talking about the "guide for non-programmers" on the site or something else? (looks like it was pulled from some Oxford course plan) Looks pretty good to me, really helpful so far.

  • @Lavabug On python.org/doc/ the link that just says "Tutorial" for your version of Python. It doesn't really hold your hand with tons of examples, but it's a fast way into the language. If you remember a bit from Java, you can follow it :)

  • how did you calculate this?

  • this looks so awesome!

  • Nope. There are tons of engines which would do those better than mine ever could :) (Chipmunk, for example)

  • can i borrow some of your coding? I want to make something similar to Pivot Stick Figure animaotr only than for film producers as a storyboard/post production thing

  • Sure, go ahead. The source to versions of PolyPlay up to 1.4 are on the Pygame site. PolyPlay 1.3 is probably the most interesting.

  • Ah. Very nice! I think I am going to download your source code and use it for what I'm learning. Just picked up Python last night and am in process of learning it! Thanks for the contribution =3

  • I'm glad you like it!

    Is Python your first language? If so you're probably fine learning from my old Python stuff, but note that at the time of writing this code I was quite a beginner, if you've already got some programming experience there are better examples of good Python out there!

  • Phisical engine? phi - I wrote my phisical engine in my own. You can see it how to create such engine step by step in my movies. bye, bye

  • Looks a bit glitchy but nice!

  • where I can get it? kinda useful with rabbyt or pyglet

  • Do you think you could put a link to the source of your program?

  • How do physics engines work? Just extremely complicated maths?

  • Well, it depends. The "physics engine" term is pretty loose, a physics engine could for instance be just a script that prevents a character from falling through a platform. The maths there is just checking if the character y is lower than the platform y. In my engine, which is a so-called soft body physics engine, the main component is springs which connect masses, which can be arranged into many shapes. The really heavy maths are pretty much limited to rigid body engines.

  • The only thing that looks unrealistic is the way the collisions increase the kinetic energy of the objects, at the very end of the clip.

  • Yep, it wasn't physically correct. It's from half an year ago though: you might want to check the latest collision demo!

    By the way yes, I coded my own physics engine. You can download that and the most recent implementation of it on the Pygame site, under the name PolyPlay!

  • That's looking pretty sweet. You didn't use a physics engine and hand-coded the physics stuff?

  • The collision resolving need to be fixed! But I can't say anything, becouse I just know how to resolve circle-circle collisions =P

  • Could you post the source somehow?

  • Done, kinda! Check the video info.

  • Cheers, I'll have a look

  • Technex, I seem to be Rolo.

  • Sweet!

  • Uhm, which problem? Inexact collision reaction code?

  • Yes why? :P Who are you?

  • Technex? you still alive?

  • It's awesome dude :D!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more