Options
All
  • Public
  • Public/Protected
  • All
Menu

External module tween

Index

Classes

Functions

Functions

tweenUtil

  • tweenUtil(target: Object): Tween
  • 增加一个 tween 缓动,与 creator 2D 中的 cc.tween 功能类似

    example
    let position = new math.Vec3();
    tweenUtil(position)
       .to(2, new math.Vec3(0, 2, 0), { easing: 'Cubic-InOut' })
       .start();

    Parameters

    • target: Object

      缓动目标

      注:请勿对 node 矩阵相关数据直接进行缓动,例如传入 this.node.position

    Returns Tween

Generated using TypeDoc