Skip to content

Commit

Permalink
Assignment 8
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaetani committed Nov 17, 2019
1 parent 53091e1 commit e5e9b33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Binary file added 08/CS460_Assignment_08__Copy_.pdf
Binary file not shown.
11 changes: 11 additions & 0 deletions 08/robot.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,18 @@ Robot.prototype.walk = function() {
};

Robot.prototype.onStep = function() {
if (this.root.position > 500 || this.root.position.z < -500) {
this.root.rotateY(Math.PI/2);
}

else if (this.root.position.x > 500 || this.root.position.x < -500) {
this.root.rotateY(Math.PI/2);
}


this.root.translateZ(10);


};

Robot.prototype.onAnimate = function() {
Expand Down

0 comments on commit e5e9b33

Please sign in to comment.