chore: tidy
This commit is contained in:
parent
16dffe6855
commit
5059525ca3
|
@ -167,11 +167,9 @@ export default () => class Mobile extends decorate(Trait) {
|
|||
if (!this.entity.isMobile) {
|
||||
return;
|
||||
}
|
||||
this.entity.applyMovement(Vector.scale(
|
||||
Vector.saturate(vector),
|
||||
this.speed,
|
||||
));
|
||||
this.entity.emit('movementRequest', this.#appliedMovement);
|
||||
const movement = Vector.scale(Vector.saturate(vector), this.speed);
|
||||
this.entity.applyMovement(movement);
|
||||
this.entity.emit('movementRequest', movement);
|
||||
},
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user