Skip to content

Commit

Permalink
fix: Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
samalexander committed Apr 14, 2020
1 parent 49254a4 commit 351f54b
Show file tree
Hide file tree
Showing 3 changed files with 1,502 additions and 436 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ import * as THREE from 'three';
import { CSG } from 'three-csg-ts';
// Make 2 box meshes..
const meshA = new THREE.Mesh(new THREE.BoxGeometry(1,1,1));
const meshA = new THREE.Mesh(new THREE.BoxGeometry(1,1,1), new THREE.MeshBasicMaterial( { color: 0x32a852 } ));
const meshB = new THREE.Mesh(new THREE.BoxGeometry(1,1,1));
// Offset one of the boxes by half its width..
meshB.position.add(new THREE.Vector3(0.5, 0.5, 0.5);
meshB.position.add(new THREE.Vector3(0.5, 0.5, 0.5));
// Make sure the .matrix of each mesh is current
meshA.updateMatrix();
Expand Down
Loading

0 comments on commit 351f54b

Please sign in to comment.