Skip to content

@ue-too/dynamics / 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)