thingorigin2.0
    正在准备搜索索引...
    索引

    构造函数

    属性

    motionMap: Map<string, EasingFunction> = ...
    属性 说明
    运动模式列表 直线、跳动

    方法

    • 将child模型关联至parent模型中

      参数

      • parent: Object3D

        父模型

      • child: Object3D

        子模型

      • 可选configs: prs

        关联配置项,默认值 { position: { x: 0, y: 0, z: 0 }, rotation: { x: 0, y: 0, z: 0 }, scale: { x: 1, y: 1, z: 1 }, }

      返回 { position: Vector3; rotation: Euler; scale: Vector3 }

    • 解除关联并销毁(父与子)

      参数

      • parent: Object3D

        父模型

      • child: Object3D

        子模型

      返回 { position: Vector3 }

    • 模型淡入效果

      参数

      • model: Object3D

        模型

      • time: number

        完成时间(毫秒)

      返回 void

    • 模型淡出效果

      参数

      • model: Object3D

        模型

      • time: number

        完成时间(毫秒)

      返回 void

    • 间补平移动画

      参数

      • model: Object3D

        模型

      • axis: "x" | "y" | "z"

        方向

      • from: number

        从哪个位置开始

      • to: number

        到哪个位置停止

      • time: number

        完成时间(毫秒)

      返回 Tween<any>

    • 解除关联(父与子)

      参数

      • parent: Object3D

        父模型

      • child: Object3D

        子模型

      返回 Object3D<Object3DEventMap>

    • 间补旋转动画(角度)

      参数

      • model: Object3D

        模型

      • axis: "x" | "y" | "z"

        方向

      • from: number

        起始角度

      • to: number

        目标角度

      • time: number

        动画时间(毫秒)

      • mode: string = "linear"

        运动模式 linear:匀速、bounceOut:弹开

      返回 Tween<any>

    • 间补旋转动画(弧度)

      参数

      • model: Object3D

        模型

      • axis: "x" | "y" | "z"

        方向

      • from: number

        从哪个弧度开始

      • to: number

        到哪个弧度停止

      • time: number

        完成时间(毫秒)

      返回 Tween<any>