SceneModelExploderParams: {
    collisionIndex: SceneCollisionIndex;
    initialFactor?: number;
    maxFactor?: number;
    minFactor?: number;
    scene: Scene;
    sceneModel: SceneModel;
    step?: number;
}

Construction parameters for SceneModelExploder.

Type declaration

  • collisionIndex: SceneCollisionIndex

    The SceneCollisionIndex the exploder reads per-mesh world AABBs from. Any object exposing getMeshAABB(mesh) is accepted — host code that already maintains a collision index can pass it through; standalone callers can spin one up with new SceneCollisionIndex(scene).

  • OptionalinitialFactor?: number

    Initial explode factor. Default 0.

  • OptionalmaxFactor?: number

    Slider upper bound. Default 2 (twice the centre→mesh distance).

  • OptionalminFactor?: number

    Slider lower bound. Default 0 (no displacement).

  • scene: Scene

    The Scene the exploder operates in. Used to read the coordinate system so the explode offset is applied in the SceneModel's local frame regardless of how the Scene and SceneModel coordinate systems relate.

  • sceneModel: SceneModel

    The SceneModel whose meshes the exploder displaces away from the model centre. Read at rebuild time; later calls to setFactor replay the cached rest pose without re-walking the SceneModel.

  • Optionalstep?: number

    Slider step. Default 0.05.