@borissman Haha, lol, I didn't see when you posted. Thanks! I'm glad you found out.
cristicbz 1 year ago
@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
Flamer991 7 months ago
holy crap, I commented in this video a year ago and somehow Ive made it back! I dont remember watching it at all
tuxsbro 2 years ago
Chipmunk is open source - there are no secrets. If you want to know how it works, download the source and see for yourself.
superscatboy 2 years ago
this rocks, and its even open source!!!
crazyfuturamafreak 3 years ago 4
you can do even better things more easily with PHUN
/watch?v=0H5g9VS0ENM
Ap0ske 3 years ago
but the chipmunks physics engine works onthe psp also
lainlives 3 years ago
pretty much anywhere you can compile C code, chipmunk will work. finding a suitable graphics backend, however, is completely unrelated
rfranknj 2 years ago
But you can't use phun engine in your own games, right? so that makes phun completely useless
crazyfuturamafreak 3 years ago 2
As far as I know, phun is not a library, so you're right. It's useless.
tyraende 2 years ago
and phun is proprietary :( in the beginning they were going to open source it but they changed their minds
tuxsbro 3 years ago 3
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
Wegzo 3 years ago
That's pretty cool. I can't wait to see how that works in X-Moto.
Jesant13 3 years ago
how to use chipmunk playground??
timmypokemon 4 years ago 2
OK i downloaded it now what?
NightwishRune 4 years ago
lol, ok
snowball1912 4 years ago
@borissman Haha, lol, I didn't see when you posted. Thanks! I'm glad you found out.
cristicbz 1 year ago
@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 1 year ago
@cristicbz o_0
Flamer991 7 months ago
holy crap, I commented in this video a year ago and somehow Ive made it back! I dont remember watching it at all
tuxsbro 2 years ago
Chipmunk is open source - there are no secrets. If you want to know how it works, download the source and see for yourself.
superscatboy 2 years ago
this rocks, and its even open source!!!
crazyfuturamafreak 3 years ago 4
you can do even better things more easily with PHUN
/watch?v=0H5g9VS0ENM
Ap0ske 3 years ago
but the chipmunks physics engine works onthe psp also
lainlives 3 years ago
pretty much anywhere you can compile C code, chipmunk will work. finding a suitable graphics backend, however, is completely unrelated
rfranknj 2 years ago
But you can't use phun engine in your own games, right? so that makes phun completely useless
crazyfuturamafreak 3 years ago 2
As far as I know, phun is not a library, so you're right. It's useless.
tyraende 2 years ago
and phun is proprietary :( in the beginning they were going to open source it but they changed their minds
tuxsbro 3 years ago 3
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...
superscatboy 2 years ago
haha thats quite funny
Wegzo 3 years ago
That's pretty cool. I can't wait to see how that works in X-Moto.
Jesant13 3 years ago
how to use chipmunk playground??
timmypokemon 4 years ago 2
OK i downloaded it now what?
NightwishRune 4 years ago
lol, ok
snowball1912 4 years ago