updateForwardMovement 更新角色向前移动
updateForwardMovement
类型: MethodDeclaration
所属类: ActorNavigator
定义位置: actor.ts
描述
更新角色向前移动
参数 deltaTime: 增量时间(毫秒)
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| deltaTime | number | - | - | 
返回值
类型: void
源代码
位置: 第 2233 行
private updateForwardMovement(deltaTime: number): void {
    const actor = this.actor
    const x = this.velocityX * deltaTime
    const y = this.velocityY * deltaTime
    actor.updateAngle(this.movementAngle)
    actor.move(x, y)
  }
文档生成时间:2025/7/21 20:53:38