Skip to content

Commit

Permalink
apply quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MOQN committed Oct 6, 2024
1 parent c26975a commit de63b21
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function setupThree() {
.setRotationVelocity(random(-0.01, 0.01), random(-0.01, 0.01), random(-0.01, 0.01))
.setScale(random(3, 30), random(3, 30), random(1, 15));
cubes.push(tCube);
scene.add(tCube); // don't forget to add to scene
}
}

Expand Down Expand Up @@ -44,6 +43,7 @@ class Cube {
this.rotVel = createVector();
this.rotAcc = createVector();
this.mesh = getBox();
scene.add(this.mesh); // don't forget to add to scene
}
setPosition(x, y, z) {
this.pos = createVector(x, y, z);
Expand Down
2 changes: 1 addition & 1 deletion 04b_objects_dynamicArrays/02_dynamicArrays_prep/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function setupThree() {
.setRotationVelocity(random(-0.05, 0.05), random(-0.05, 0.05), random(-0.05, 0.05))
.setScale(random(3, 15));
cubes.push(tCube);
scene.add(tCube); // don't forget to add to scene
}
}

Expand Down Expand Up @@ -46,6 +45,7 @@ class Cube {
this.rotVel = createVector();
this.rotAcc = createVector();
this.mesh = getBox();
scene.add(this.mesh); // don't forget to add to scene
}
setPosition(x, y, z) {
this.pos = createVector(x, y, z);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function setupThree() {
.setRotationVelocity(random(-0.05, 0.05), random(-0.05, 0.05), random(-0.05, 0.05))
.setScale(random(3, 15));
cubes.push(tCube);
scene.add(tCube); // don't forget to add to scene
}
}

Expand Down Expand Up @@ -73,6 +72,7 @@ class Cube {
this.rotAcc = createVector();
this.isDone = false;
this.mesh = getBox();
scene.add(this.mesh); // don't forget to add to scene
}
setPosition(x, y, z) {
this.pos = createVector(x, y, z);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function updateThree() {
.setRotationVelocity(random(-0.05, 0.05), random(-0.05, 0.05), random(-0.05, 0.05))
.setScale(random(3, 20));
cubes.push(tCube);
scene.add(tCube); // don't forget to add to scene
}

// update the cubes
Expand Down Expand Up @@ -75,6 +74,7 @@ class Cube {
this.isDone = false;
//
this.mesh = getBox();
scene.add(this.mesh); // don't forget to add to scene
}
setPosition(x, y, z) {
this.pos = createVector(x, y, z);
Expand Down

0 comments on commit de63b21

Please sign in to comment.