0
\$\begingroup\$

I've seen a lot of sites that recommends to use Quadtree for splitting the array by levels and nodes for a better performance for example in CollisionSystem there's a lot of collisions needs to be handle. I need to ask this question because I'm planning to create my own Quadtree class, if there it didn't exist.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ So are you asking if you can implement a QuadTree in Java (LibGDX)? Or if LibGDX has a QuadTree? Or if the LibGDX architecture supports (custom) QuadTrees? It is a little unclear right now. \$\endgroup\$ Commented Sep 27, 2016 at 16:35

2 Answers 2

2
\$\begingroup\$

GDX doesn't support it directly.

A version for LibGDX https://github.com/alwex/QuadTree

\$\endgroup\$
1
  • \$\begingroup\$ It's not "for" libGDX, it uses ArrayList instead of Array and so it probably doesn't care about GC \$\endgroup\$ Commented Sep 16, 2019 at 0:09
0
\$\begingroup\$

A bit late but here is an implementation that is specifically developed for use with libgdx: https://github.com/nahumrosillo/quadtree-libgdx

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.