ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pygame-users
pygame-users
Re: [pygame] Fastest (x,y) distance calculation
by Magnus Lie Hetland other posts by this author
Sep 12 2003 9:00PM messages near this date
Re: [pygame] Fastest (x,y) distance calculation | Re: [pygame] Fastest (x,y) distance calculation
Zak Arntson <zak@[...].com> :
> 
[snip]
>  I investigated BSP trees, but it looks like it would be difficult to
>  maintain them on the fly for a large number of moving objects. For the
>  static Temples, it's no problem. But I eventually want to have up to 100
>  (or more, if I can optimize properly) moving objects that each know who
>  the nearest object is.
>  
>  Or are BSP trees the way to go?

Here is a discussion of some other spatial structures:

  http://citeseer.nj.nec.com/rigaux99spatial.html

There are also lots of approximate methods for finding the nearest
neighbour efficiently.

-- 
Magnus Lie Hetland                "In this house we obey the laws of
http://hetland.org                 thermodynamics!"    Homer Simpson
Thread:
Zak Arntson
Rene Dudfield
Niki Spahiev
Magnus Lie Hetland
Pete Shinners
Bob Ippolito
Zak Arntson
Magnus Lie Hetland
Nicola Larosa

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved