we
    Preparing search index...

    Interface I_AnimationWeightForMergePlay

    合并播放权重值(一个单体动画 或 动画组 ) 1、关键帧与骨骼动画可以有权重组合,morphTarget动画本身已经是权重播放,不可以有权重组合。 2、权重组合的作用在worldMatrix,权重值与worldMatrix相乘,sum为新的worldMatrix。

    interface I_AnimationWeightForMergePlay {
        animation: BaseAnimation[] | AnimationGroup[];
        loop: boolean;
        name?: string;
        timer: number[];
        weight: number[];
    }
    Index

    Properties

    animation: BaseAnimation[] | AnimationGroup[]

    动画

    loop: boolean

    是否循环播放 1、如果为true,播放到结束后,会自动重置到开始时间,重新播放。不删除当前权重值数组。 2、如果为false,播放到结束后,会从weightsList中删除当前权重值数组。

    name?: string
    timer: number[]

    动画播放时间 1、动画播放时间的长度

    weight: number[]

    权重值 (二维数组一维化) 1、权重值的stride长度=动画数量 2、权重数组长度=时间长度*stride 3、每帧动画的权重值之和必须为1,不等于1,需要进行归一化处理。