Hi everyone,
I am trying to use the most performant physics library for a 2D game with simple physics where AABB collision detection are fine. Since Arcade is the simplest physics engine, I expect it to perform better than Matter.js or Ninja, is that right?
Then, I wonder if someone knows the time complexity of the physics engine as an input of the number of elements. Is it linear? or O(n * log n)?
Related to the latter, I wonder if internally it uses quadtrees, or a grid space representation, or otherwise how does it avoid having to compare every object against every other object for collisions, leading to O(n^2).
Thank you in advance!