Function explodeGroup

  • 对物体进行爆炸分解

    Parameters

    • group: Object3D<Object3DEventMap>

    Returns {
        explode: ((opts?) => Promise<any>);
        reset: ((opts?) => Promise<any>);
    }

    • explode: ((opts?) => Promise<any>)

      爆炸分解

        • (opts?): Promise<any>
        • 爆炸分解

          Parameters

          • Optional opts: {
                distance?: number;
                easing?: Easing;
                enableRotation?: boolean;
                time?: number;
            }
            • Optional distance?: number

              爆炸分解分解距离

            • Optional easing?: Easing

              动画类型

            • Optional enableRotation?: boolean

              允许旋转

            • Optional time?: number

              动画时长

          Returns Promise<any>

    • reset: ((opts?) => Promise<any>)

      还原

        • (opts?): Promise<any>
        • 还原

          Parameters

          • Optional opts: {
                easing?: Easing;
                enableRotation?: boolean;
                time?: number;
            }
            • Optional easing?: Easing

              动画类型

            • Optional enableRotation?: boolean

              允许旋转

            • Optional time?: number

              动画时长

          Returns Promise<any>