3D game
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user