Skip to content
Permalink
Browse files
Designate the cuboid as the player
  • Loading branch information
MattyRad committed Feb 8, 2020
1 parent 58c2fb4 commit 6acaa472bf7653ea2ba2e55e8c1fb1e38cb750e5
Showing 1 changed file with 2 additions and 2 deletions.
@@ -7,8 +7,8 @@ document.body.appendChild( renderer.domElement );

var geometry = new THREE.BoxGeometry( 0.2, 1, 0.2 );
var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
var cube = new THREE.Mesh( geometry, material );
scene.add( cube );
var player = new THREE.Mesh( geometry, material );
scene.add( player );

camera.position.z = 5;

0 comments on commit 6acaa47

Please sign in to comment.