PhysicsAPI reference
Class PhysicsModule
Namespace: MicroEngine.Physics
Assembly: MicroEngine.Physics.dll
Guide: Physics worlds
The physics module: registers a PhysicsSystem service and steps it in Physics (system SystemName), once per fixed step, after the simulation’s FixedUpdate.
public sealed class PhysicsModule : IEngineModuleInheritance
Implements
Examples
public override void Configure(EngineBuilder builder) => builder.Add(new PhysicsModule());// later, in a scene: Game.Engine.Services.Get<PhysicsSystem>().Add(physics, world);Constructors
PhysicsModule()
public PhysicsModule()Fields
SystemName
The name of the frame system that steps physics.
public const string SystemName = "engine.physics"Field Value
Methods
Configure(EngineBuilder)
Registers what the module provides on builder; called once, when the module is added.
public void Configure(EngineBuilder builder)Parameters
builder EngineBuilder