Documentation
    Preparing search index...

    Type Alias PhysicsWorldFactory

    PhysicsWorldFactory: (context: PhysicsWorldContext) => PhysicsWorld

    Builds the world ApplicationOptions.physics attaches, given the application's own §43 pose buffer.

    const app = new Application({
    physics: ({ poses }) =>
    new PhysicsWorld({ dimension: "3d", adapter: new Rapier3dAdapter(), poses }),
    });

    Called once, synchronously, from the constructor — so Application.physics is readable immediately, exactly as Application.scene is. A world built this way exists because the application asked for it, so the application disposes it (§83); see Application.dispose.

    Type Declaration