I am generating a forest.
I want next generated tree has distance X of all allready generated trees.
I am using vec_dist to generate map but is slow (500) trees
I donīt know if i should make my function calculating distance on 2d for speed up?
Or create a grid over map and only make collisition testing inside the cell?
Or maybe both?
I have the source of octree made on c++ , could be usefull translate to lite-c or the effort donīt pays and is faster to make from sctach?

Any advice or link are welcome.
Thanks in advance



Carlos Ribeiro aka Elektron
Check my blog: http://indiegamedeveloper71.wordpress.com/