Skip to content

Commit

Permalink
Designate the cuboid as the player
Browse files Browse the repository at this point in the history
  • Loading branch information
MattyRad committed Feb 8, 2020
1 parent 58c2fb4 commit 6acaa47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6acaa47

Please sign in to comment.