Chipmunk Machine
Top Comments
All Comments (22)
-
@cristicbz o_0
-
@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.
-
holy crap, I commented in this video a year ago and somehow Ive made it back! I dont remember watching it at all
-
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...
-
Chipmunk is open source - there are no secrets. If you want to know how it works, download the source and see for yourself.
-
pretty much anywhere you can compile C code, chipmunk will work. finding a suitable graphics backend, however, is completely unrelated
-
As far as I know, phun is not a library, so you're right. It's useless.
this rocks, and its even open source!!!
crazyfuturamafreak 3 years ago 4
and phun is proprietary :( in the beginning they were going to open source it but they changed their minds
tuxsbro 3 years ago 3