dacha
    Preparing search index...

    Interface PhysicsSystemOptions

    The options of PhysicsSystem.

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown
    Index
    actorSpawner: ActorSpawner

    Actor spawner for creating new actors

    assets: Assets

    Registry of project assets

    globalOptions: Record<string, unknown>

    Global engine options

    gravityX?: number

    Horizontal gravity, in world units per second squared.

    0

    gravityY?: number

    Vertical gravity, in world units per second squared.

    980

    maxAllowedPenetration?: number

    How deep, in world units, bodies can overlap before the solver pushes them apart. A small overlap stops resting bodies from shaking.

    0.5

    maxBiasVelocity?: number

    The highest speed, in world units per second, at which the solver pushes overlapping bodies apart.

    60

    resources?: unknown

    Optional resources available to the system

    scene: Scene

    Scene this system operates on

    solverIterations?: number

    How many times per step the solver works on the contacts. More iterations make stacks of bodies more stable.

    8

    templateCollection: TemplateCollection

    Template collection for actor creation

    time: Time

    Shared timing state

    world: World

    World containing the scene