Advertisement
yskang

threejs-minecraft-4

Apr 15th, 2020
6,327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Minecraft Creeper model
  3.  * Ref: https://ithelp.ithome.com.tw/articles/10200287
  4.  */
  5.  
  6. class Creeper extends THREE.Group {
  7.   constructor() {
  8.     super();
  9.  
  10.     this.init();
  11.   }
  12.  
  13.   init() {
  14.     // Geometries for head, body and foot
  15.    
  16.     // Skin Color
  17.    
  18.  
  19.     // head
  20.    
  21.  
  22.     // body
  23.    
  24.  
  25.     // 4 feet
  26.    
  27.  
  28.     // Combine 4 feet as a group
  29.    
  30.  
  31.     // Put head, body and feet into a single group
  32.    
  33.   }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement