Class PhysicsAbstract

Provides global physics settings, factory methods for physics objects and scene queries.

Constructors

Accessors

  • get isUpdateInProgress(): boolean
  • Checks is the physics simulation update currently in progress.

    Returns boolean

Methods

  • Checks if two collision layers are allowed to interact.

    Parameters

    • groupA: number
    • groupB: number

    Returns boolean

  • Enables or disables collision between two layers. Each physics object can be assigned a specific layer, and here you can determine which layers can interact with each other.

    Parameters

    • groupA: number
    • groupB: number
    • enabled: boolean

    Returns void