Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 4 feet
- const footGeo = new THREE.BoxGeometry( 2, 3, 2 );
- this.foot1 = new THREE.Mesh( footGeo, creeperMat );
- this.foot1.position.set( -1, -5.5, -2 );
- this.foot2 = this.foot1.clone();
- this.foot2.position.set( -1, -5.5, 2 );
- this.foot3 = this.foot1.clone();
- this.foot3.position.set( 1, -5.5, 2 );
- this.foot4 = this.foot1.clone();
- this.foot4.position.set( 1, -5.5, -2 );
- this.feet = new THREE.Group();
- this.feet.add( this.foot1 );
- this.feet.add( this.foot2 );
- this.feet.add( this.foot3 );
- this.feet.add( this.foot4 );
Advertisement
Add Comment
Please, Sign In to add comment