Class PhysicsSceneSettings

The PhysicsSceneSettings struct contains settings for the physics simulation in a scene.

Hierarchy

  • FrameworkObject
    • PhysicsSceneSettings

Constructors

Accessors

Methods

  • Checks if two collision layers are allowed to interact.

    Parameters

    • layer1: number

      The first layer.

    • layer2: number

      The second layer.

    Returns boolean

    Whether objects in layer1 are able to interact with objects in layer2.

  • 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

    • layer1: number

      The first layer.

    • layer2: number

      The second layer.

    • isEnabled: boolean

      Whether objects in layer1 should be able to interact with objects in layer2.

    Returns void