Added: 4 years ago
From: slembcke
Views: 29,206
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (22)

Sign In or Sign Up now to post a comment!
  • @borissman Haha, lol, I didn't see when you posted. Thanks! I'm glad you found out.

  • @borissman You should try googling it, however I am in the mood for maths.

    Consider X be a point in space, then X is inside the circle with center C and radius R iff:

    (X-C).(X-C) <= r^2

    Where . is the dot product. Now, if you write your line in parametric form then, X is on the line iff:

    X = P + t*D

    Plug this in and you get, do the math, solve for t and you get t2=-t1:

    t1 = 0.5 * (4(M^2-N^2+r^2) - m)

    Where n = P-C and m = d.(P-C). Now your two intersection points will be P+t1*d and P+t2*D.

  • @cristicbz o_0

  • holy crap, I commented in this video a year ago and somehow Ive made it back! I dont remember watching it at all

  • Chipmunk is open source - there are no secrets. If you want to know how it works, download the source and see for yourself.

  • this rocks, and its even open source!!!

  • you can do even better things more easily with PHUN

    /watch?v=0H5g9VS0ENM

  • but the chipmunks physics engine works onthe psp also

  • pretty much anywhere you can compile C code, chipmunk will work. finding a suitable graphics backend, however, is completely unrelated

  • But you can't use phun engine in your own games, right? so that makes phun completely useless

  • As far as I know, phun is not a library, so you're right. It's useless.

  • and phun is proprietary :( in the beginning they were going to open source it but they changed their minds

  • PHUN is a physics sandbox, and as such a very different thing from Chipmunk. It might be "easier" in your opinion, but try telling that to a developer looking for a lightweight physics engine to use in their app...

  • haha thats quite funny

  • That's pretty cool. I can't wait to see how that works in X-Moto.

  • how to use chipmunk playground??

  • OK i downloaded it now what?

  • lol,  ok

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