图层修改

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-14 16:02:20 +08:00
parent ff1542c24f
commit ae75fce80b
5121 changed files with 17930 additions and 16467861 deletions

View File

@@ -218,7 +218,6 @@ export class Movement extends Component {
Vec3.moveTowards(next, pos, this.targetPosition, this.moveSpeed * dt * speedMul);
this.node.setPosition(next);
this.onMoving();
this.markDrawOrderDirty();
this.syncRideAfterMoveStep();
if (Vec3.distance(next, this.targetPosition) < 0.005) {
this.node.setPosition(this.targetPosition);
@@ -331,6 +330,8 @@ export class Movement extends Component {
this.lastPosition.set(this.getGridSamplePosition());
this.moveState = MoveState.Moving;
this.onMoveNextSet(isJump);
// 起步 dirty角色朝前会切落点载具仍按起点人车可能同帧都要重排
this.markDrawOrderDirty();
await this.waitUntil(() => !this.moveWait);
} else {
this.playMoveAnim();