Advertisement
yskang

threejs-minecraft-5

Apr 15th, 2020
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // head
  2. const headGeo = new THREE.BoxGeometry( 4, 4, 4 );
  3. const creeperMat = new THREE.MeshPhongMaterial( { color: 0x00ff00 } );
  4. this.head = new THREE.Mesh( headGeo, creeperMat );
  5. this.head.position.set( 0, 6, 0 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement