Skip to content
You're viewing the docs for v0.19. The latest version is v0.20. Go to the latest docs

@ue-too/dynamics / index / SpatialIndexType

Type Alias: SpatialIndexType ​

SpatialIndexType = "quadtree" | "dynamictree" | "sap"

Defined in: world.ts:23

Spatial indexing algorithm types.

Remarks ​

Different algorithms have different performance characteristics:

  • quadtree: Best for static or mostly-static worlds
  • dynamictree: Good balance for mixed static/dynamic
  • sap: Best for many dynamic bodies (sweep-and-prune)