Browse Source

Update How-to-update-things.html

Michael Herzog 7 years ago
parent
commit
3215863683
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/manual/introduction/How-to-update-things.html

+ 3 - 3
docs/manual/introduction/How-to-update-things.html

@@ -12,13 +12,13 @@
 		<div>
 			<p>All objects by default automatically update their matrices if they have been added to the scene with</p>
 			<code>
-var object = new THREE.Object3D;
+var object = new THREE.Object3D();
 scene.add( object );
 			</code>
 			or if they are the child of another object that has been added to the scene:
 			<code>
-var object1 = new THREE.Object3D;
-var object2 = new THREE.Object3D;
+var object1 = new THREE.Object3D();
+var object2 = new THREE.Object3D();
 
 object1.add( object2 );
 scene.add( object1 ); //object1 and object2 will automatically update their matrices