@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user