Perl: the Markov chain saw | |
PerlMonks |
Re^3: What Perl CAN'T do?by jplindstrom (Monsignor) |
on Dec 15, 2005 at 03:41 UTC ( [id://516844]=note: print w/replies, xml ) | Need Help?? |
One very simple way to optimize collision detection is to sort the objects by pos.x (or y) first. Now you know a lot more about which objects are in proximity.
I'm sure there are really clever rocket science grade algorithms for this too :) /J
In Section
Meditations
|
|