跳到主要内容

getDirectionAngle 获取当前动画方向的角度

getDirectionAngle

类型: MethodDeclaration

所属类: AnimationPlayer

定义位置: animation.ts

描述

获取当前动画方向的角度

返回值:弧度

返回值

类型: number

弧度

源代码

位置: 第 275 行

public getDirectionAngle(): number {
const directions = this.dirList.length
return this.direction / directions * Math.PI * 2
}

文档生成时间:2025/7/7 12:07:06