Added: 4 years ago
From: Draknek
Views: 8,516
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (24)

Sign In or Sign Up now to post a comment!
  • i'm new at this... but i try to figure out certain formulars for it, (already got spheare collisions to work using this pytaghorean formular and distance checking etc), would you mind giving me the formular / way you u did use for making the program being able to detect the local x and y coordinate for each polygon? I'd be sooooooo glad :)

    have a nice day

    hrsitcom

  • what collision detection algorithm did you use? SAT? is this like if(ob 1 collides with ob 2) ob2 start moving in direction of ob 1 or something like that?

  • @meming4 Yes, the collision detection uses SAT. The collision resolution uses the normal from SAT as the direction in which to change the object's velocities.

    My later videos have rotating bodies which makes the collision resolution more complicated but the collision detection is still SAT.

  • @Draknek can you Give me a little sample code? maby just a formula? thnx

  • @meming4 For objects without rotation, look up "particle physics".

  • Actually, this isn't an engine. Just an application.

  • not much like 'phun'

  • Wow, I'm 2nd year CS and we're studying databases :(

    Also good to see you're using Ubuntu. Apparently.

  • If you want to do something really interesting, you may have do it yourself in your own time.

    That said, I don't know what your course is like but this was for my third year project, which was basically allowed to be anything we wanted.

  • You are wasting your time. Chipmunk is open-source and better.

  • Maybe he means to study physics engines, and not to produce a library for others to use. Just maybe. Still, Chipmunk's awesome!

  • Let me rephrase:

    Why to make a physics library for other's use, when there already exists a better one?

  • Probably he hasn't read much from Dijkstra.

  • just add some constraints and make each particle bounce separately

    using verlet integration is probably the best way if your gonna use constraints

  • 3rd year? and your still doing this? do something better dood..

  • add rotations to that dude

  • This really isn't that great...Its just a bunch of objects with precise collisions bouncing around....I could probably make better physics in open gml.

  • You stupid, it's great!

  • This is so cool! I wish I could program!

    Question: Are the objects programmed to lose a little bit of energy when they hit each other, or are the collisions perfectly elastic? (I see as time goes on the objects move less... just wondering if that was only due to the fact that you were adding more mass to the system and hence lowering the average velocity of the objects).

  • Hey, thanks for the interest.

    I think the objects here bounce away from a collision at about 75% of their previous velocities.

    This is why they settle on the floor; if they didn't ever lose any energy, they'd keep bouncing around forever (although as you note, their individual speeds might be quite low).

  • I see Ubuntu... ;)

    What software do you use for screen capturing? I use XVidCap, I find it to be very neat.

    The engine is fantastic by the way! You should keep a version without rotation, I think it would be very useful in platform games, for instance.

  • I use gtk-recordMyDesktop for video capture; it seems to work pretty well.

    Thanks for commenting. Eventually I'll add the ability to enable/disable rotation per-body, but for the demos I've made so far, it hasn't really been necessary.

  • Impressive. Finally a use for M2 mechanics huh? =)

    Once you add the rotation will you be done?

  • There's still plenty to add after that: friction, compound bodies, springs, joints. And there's lots of optimisations to be made.

    But all of a sudden it looks like I might be capable of doing this, so I'm happy.

  • Awesomeness. Well gl with that. Looks quite fun as it is, heh.

    I use a similar methodology in my project; mass code generation slogs until it works, then interate through it making it work in a reasonable time frame xD.

    You going to have ragdolls?

  • Hmm, I guess it might be possible to make a ragdoll in it when I add joints.

    It's not one of my targets, though.

  • Sorry, my last comment was kinda rude. What is your primary target?

  • Well i am in high school and i implemented an engine using verlet integration, it looks a lot cooler.

  • And you must not have any friends, with that special attitude of yours.

Loading...
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