PDA

View Full Version : good collision paper



kryton9
05-02-2007, 08:08
Petr and other interested parties, I found this paper that has a lot of nice explanations about collisions and sliding collisions.
It takes a while to load up, but is pretty nice. The math is beyond my abilities from what I learned in school, but I am going to try to work my way through it.

I have a hard time translating the mathematical formulas into programming code. The formulas look so initmidating, whereas the code is not. I wish they would show the formulas and then how that translates to code when they present all the theory. It sure would make learning much nicer and easier :)
For example, look at this formula... how do you take this and make something in code with it? ;)
C(t) = basePoint + t * velocity; t 2 E [0; 1] This being one of the few I could paste The E is a curvy looking E, where the vertical part is curved like a C.
I will plug away at this and try to figure it out, but wanted to share it with you as it might help in your work too.

http://www.peroxide.dk/papers/collision/collision.pdf

If you have any good sites on collision code or papers please post them here. I really want to learn this stuff.

Petr Schreiber
05-02-2007, 22:41
Hi kryton9,

thanks for interesting info !

To remove some mystery:

R3
Means 3D space

t curvedE [ 0, 1 ]

Means "t is in interval 0 to 1, including 0 and 1"
So it could be : 0, 0.1, 0.2, 0.45, 0.9999, 1

This is pretty evil mathematical notation I am "enjoying" a lot in school :)
To determine interval well, you must check how the brackets look.

( 0, 1 ) means any number from 0 to 1 exclusive ( 0.1, 0.15, 0.2, 0.5, 0.999 ... but not 0 or 1 )
[ 0, 1 ] means any number from 0 to 1 inclusive ( 0, 0.1, 0.15, 0.2, 0.5, ... 1 )
[ 0, 1 ) means from 0 inclusive to 1 exclusive ( 0, 0.1, 0.2, 0.999, ... but not 1 )
( 0, 1 ] means from 0 exclusive to 1 inclusive ( 0.1, 0.2, 0.999, 1... but not 0 )

You may also see somewhere spanish notation, where instead of [, ] is used <, >

Now I must read the PDF, looks interesting :)


Bye,
Petr

kryton9
06-02-2007, 03:38
Petr, thanks for the translation and glimpse of the cool math world. A new frontier for me in this area, so fun and challenging. What is the name of the math that this fits into so I can read about the notation and stuff like that. Thanks again!!

Petr Schreiber
06-02-2007, 19:37
Hi kryton9,

hard to say if this has some kind of name. Maybe something like "math notation" ? When we met it, we just learned ( learnt :) ? ) it and used later in school :) Just quick search on google - here (http://www.karlscalculus.org/notation.html).


Bye

kryton9
06-02-2007, 22:47
Thanks Petr, bookmarked for future reference as needed, thanks!!1