PhysicsServiceCollectionExtensions Class
Extension methods for registering Box2D physics services.
public static class PhysicsServiceCollectionExtensions
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>). |