yskang

threejs-minecraft-18

Apr 21st, 2020 (edited)
648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. constructor() {
  2.     // ... other code snippet
  3.  
  4.     this.rotateHeadOffset = 0;
  5.     this.walkOffset = 0;
  6.     this.scaleHeadOffset = 0;
  7.     this.walking = false;
  8.     this.headSwinging = false;
  9.     this.bodyScaling = false;
  10. }
  11.  
  12. animate() {
  13.     this.headAnimate();
  14.     this.bodyAnimate();
  15.     this.feetAnimate();
  16. }
Add Comment
Please, Sign In to add comment