[racket] Doing collision detection in universe.ss
2012/11/28 Hendrik Boom <hendrik at topoi.pooq.com>:
> There are two arts to collision detection: figuring out whether two
> images collide (which gets trickier when they're in motion) and
> organising all your objects so you don't have to test very many
> combinations of them.
Back in the summer holiday I played with 2d-range trees for the latter purpose.
I combined it with a partial port of chipmunk.
The code with a very small example is here:
https://github.com/soegaard/this-and-that/blob/master/snoopy/racket-chipmunk.rkt
The code isn't done. Writing code for the math library turned out to be
more interesting.
--
Jens Axel Søgaard