CollisionResolverSystem<T extends App<T> > constructor
CollisionResolverSystem<T extends App<T> > (})
Implementation
CollisionResolverSystem(super.app, {
super.populateDefaults,
this.restitution = _defaultRestitution,
this.gridCellSize = _defaultGridCellSize,
this.enableEventEmitting = true,
}) {
// Cell size should be roughly 2x your largest collider radius
// For 8-radius balls, 20-32 is a good default
spatialGrid = .new(gridCellSize);
}