[ka-Map-users] Efficient Point Collision
lorenzo at ominiverdi.com
Sat Oct 21 15:37:01 EDT 2006
> To break it down each time a marker is placed it loops through
> placed marker stored in a makers array to test for collision based
> distance using "var distance = Math.sqrt(Math.pow((Math.pow
> otherNodeLeft),2) + Math.pow((thisNodeTop - otherNodeTop),2)),
> system works great for around 50 markers but often my apps will
> makers which runs just fine until I collision check them as the
> becomes huge and obviously causes the browser to hang.
why don't you do this calculation server side?
after your calculation you send back the browser just the resulting
points with the aggregated value.
did you tried?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ka-Map-users