Preparing search index...

    Asset configuring global physics simulation settings.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    absoluteSpeedLimit: number

    Maximum velocity magnitude any rigid body can reach.

    cacheFile: Path

    Path to the cached asset file.

    defaultFilter: Filter

    Default collision filter applied to new physics objects.

    defaultMatter: Matter

    Default material properties for new physics objects.

    Import metadata for the asset.

    gravity: vec3

    Gravitational acceleration vector applied to the world.

    id: Uuid

    The unique id of the entity.

    meta: Meta

    Metadata associated with this entity, providing access to its unique identifier and other descriptive properties.

    name: string

    The name of the asset.

    relativeSpeedLimit: number

    Speed limit relative to an object's mass.

    simulationRate: number

    Timestep frequency for physics calculations per second.

    slowDownStep: number

    Time reduction per simulation step when slowdown is active.

    slowDownTime: number

    Duration to apply physics slowdown when triggered.

    type: string

    The entity's type.

    Methods

    • Return whether two physics layers can collide.

      Parameters

      • layerNumberA: number
      • layerNumberB: number

      Returns boolean

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object refers to the same instance as the given object.

      Parameters

      Returns boolean