-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ian Mallett wrote: > I've recently been concerned that this will be > painfully slow. Is there a fast way to do it, without using an > outdated module?
Hi, I wrote a 2d collision detection engine for a game I was working on. It was based around a geometric approach (i.e.: there's a rectangle here, a circle here, etc., as opposed to a voxel-based engine, which seems more like what you're doing). It was too slow, so I rewrote it using some weird Numeric tricks. It's in the Pygame wiki but I sort of regret putting it there -- it's incomplete and still pretty slow. If I knew how to delete pages from the wiki I would do that. :) Writing a collision detection engine is hard to get fast and hard to get right. I won't say it's no fun, but if you're interested in writing a game which needs a collision detection engine, I recommend ODE with the PyODE bindings. If you're interested in writing a collision engine, Python probably isn't the language of choice. Ethan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG7z68hRlgoLPrRPwRAhEQAKCKnTeeKlIiIGv1qp0Wxnru/DpWsACfV9Ay x5eWxcDf5ciQn+WR8aih3a8= =RXF9 -----END PGP SIGNATURE-----