summaryrefslogtreecommitdiff
path: root/engine/entities
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-08-13 17:09:12 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-08-13 17:09:12 -0600
commit2dc3120831fbcd03b635bbad59213ff0bf1f8879 (patch)
treedf1b6e88e8f0a9370e2cd321f52725524cc4d06d /engine/entities
parent98e795029bcc404463ed151ff5255a72498bc641 (diff)
downloadjumpstorm-2dc3120831fbcd03b635bbad59213ff0bf1f8879.tar.gz
jumpstorm-2dc3120831fbcd03b635bbad59213ff0bf1f8879.zip
refactor velocity a bit for no real reason besides verbosity
Diffstat (limited to 'engine/entities')
-rw-r--r--engine/entities/Player.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/entities/Player.ts b/engine/entities/Player.ts
index 45d7500..eeddd69 100644
--- a/engine/entities/Player.ts
+++ b/engine/entities/Player.ts
@@ -35,7 +35,9 @@ export class Player extends Entity {
),
);
- this.addComponent(new Velocity({ dx: 0, dy: 0 }, 0));
+ this.addComponent(
+ new Velocity({ dCartesian: { dx: 0, dy: 0 }, dTheta: 0 }),
+ );
this.addComponent(new Mass(Player.MASS));
this.addComponent(new Moment(Player.MOI));