PhysicsServiceCollectionExtensions Class
Definition
Namespace: Brine2D.Physics
Extension methods for registering Box2D physics services.
Inheritance System.Object → PhysicsServiceCollectionExtensions
| Methods | |
|---|---|
| AddPhysics\(this IServiceCollection, Action<PhysicsOptions>\) | Adds Box2D physics services. Each scene scope gets its own PhysicsWorld. |
| AddPhysicsLayers\(this IServiceCollection, Action<PhysicsLayerRegistry>\) | Registers named physics layers in the PhysicsLayerRegistry singleton and freezes the registry. Call this once during startup after AddPhysics\(this IServiceCollection, Action<PhysicsOptions>\). |