csharp
public static class PhysicsSystemsRegisters the physics passes with a loop or a runner, in the right order.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
One call rather than five, because the order between them is not a preference — it is the difference between a simulation that is driven by this frame's input and one that is driven by last frame's.
Methods (3)
public static SystemRunner AddPhysics(this SystemRunner runner, PhysicsScene scene)Adds the four fixed-step passes to a runner.
public static EngineLoop AddPhysics(this EngineLoop loop, PhysicsScene scene)Adds the four fixed-step passes and the render-time interpolation to a loop.
public static PhysicsDebugDrawSystem AddPhysicsOverlay(this EngineLoop loop, PhysicsScene scene, DebugDraw draw, DiagnosticOverlays? overlays = null)Adds the collider overlay, switched off, and gives it a name a person can type.
Used by (5)
- ArenaThirdPersonShooter
- CharacterSceneTestsVixen.Physics.Tests
- NetworkRigidBodyTestsVixen.Net.Physics.Tests
- PhysicsSceneTestsVixen.Physics.Tests
- PlayPhysicsVixen.Editor.App