Bit more cleanup

This commit is contained in:
YourWishes committed 2026-04-30 20:03:44 -05:00
1 parent 3d984e13c2
commit 2e43aa2c44
13 files changed
+132 -84

No files matched your search

+6 -3
View File
@@ -1,14 +1,17 @@
function CubeEntity() {
Entity.call(this);
this.add(POSITION);
this.add(MESH);
this.add(MATERIAL);
this.position.x = 0;
this.position.y = 0;
this.position.z = 0;
this.add(MESH);
this.add(MATERIAL);
}
Object.assign(CubeEntity.prototype, Entity.prototype);
CubeEntity.prototype = Object.create(Entity.prototype);
CubeEntity.prototype.constructor = CubeEntity;
CubeEntity.prototype.update = function() {
var speed = 3.0;