This commit is contained in:
2026-03-12 17:09:25 -03:00
parent 244f0eb741
commit d18942196b
21 changed files with 422 additions and 581 deletions
+3 -1
View File
@@ -3,10 +3,12 @@ import { Component } from "$/common/ecs/component.ts";
export class Velocity extends Component {
vx: number;
vy: number;
vz: number;
constructor(vx: number, vy: number) {
constructor(vx: number, vy: number, vz = 0) {
super();
this.vx = vx;
this.vy = vy;
this.vz = vz;
}
}