Collision
Brine2D¶
Brine2D.Collision Namespace¶
| Classes | |
|---|---|
| SpatialGrid | Simple spatial partitioning grid for efficient area/point/ray queries. Stores entities by their bounding rectangle. Not used for physics (Box2D handles that); useful for gameplay queries like "find all enemies near this point". |
| Structs | |
|---|---|
| CollisionContact | Lightweight collision data passed to PhysicsBodyComponent event handlers. Contains the contact normal, penetration depth, and approximate contact point. For trigger pairs, Normal, Depth, and ContactPoint may be zero when no penetration resolution was performed. |