SwiftCollections is an engine-agnostic .NET library for games, simulations, and tools that need control over storage, identity, and allocation. Use dense and sparse collections for packed iteration, generation-checked tickets for live objects, and pools to reuse storage across updates. Query 2D and 3D worlds with BVHs, spatial hashes, quadtrees, and octrees using caller-owned result buffers.
Core collections and System.Numerics queries
- Standard
dotnet add package SwiftCollections - Lean
dotnet add package SwiftCollections.Lean
Fixed-point spatial queries
- Standard
dotnet add package SwiftCollections.FixedMathSharp - Lean
dotnet add package SwiftCollections.FixedMathSharp.Lean
Choose one profile per application. Standard includes MemoryPack. Lean keeps JSON and explicit state support without the MemoryPack runtime. The fixed-point companion brings in the matching core and FixedMathSharp packages. Both profiles target .NET Standard 2.1 and .NET 10.