Engine API Reference - v2.22.0-beta.28
    Preparing search index...

    Class PhysicsWorldAlpha

    The base class for physics backends. A PhysicsWorld owns the lifecycle of a physics engine's simulation world: stepping, gravity, body and shape factories, joints, raycasts and contact reporting. Backends subclass it and override every method.

    The base implementation is a functional no-op: bodies and joints are created but inert, raycasts miss and stepping does nothing. NullPhysicsWorld uses this to let physics component lifecycle run without a physics engine loaded.

    Supply a backend to an application with AppOptions#physicsWorld.

    Applications drive physics through the physics components - the methods of this class form the internal contract between the engine and a backend and are not called directly.

    Hierarchy (View Summary)

    Index
    nativeWorld: any = null

    The backend-native world object - btDiscreteDynamicsWorld when the Ammo backend is active, null otherwise.