Browse Source

Corrects the information in the comments.

Corrects the information of the constructor parameters in the comments.
David 7 years ago
parent
commit
abe612ff44
1 changed files with 2 additions and 2 deletions
  1. 2 2
      readme.md

+ 2 - 2
readme.md

@@ -76,11 +76,11 @@ var createScene = function(){
     camera.attachControl(canvas, false);
     // create a basic light, aiming 0,1,0 - meaning, to the sky
     var light = new BABYLON.HemisphericLight('light1', new BABYLON.Vector3(0,1,0), scene);
-    // create a built-in "sphere" shape; its constructor takes 5 params: name, width, depth, subdivisions, scene
+    // create a built-in "sphere" shape; its constructor takes 6 params: name, segment, diameter, scene, updatable, sideOrientation
     var sphere = BABYLON.Mesh.CreateSphere('sphere1', 16, 2, scene);
     // move the sphere upward 1/2 of its height
     sphere.position.y = 1;
-    // create a built-in "ground" shape; its constructor takes the same 5 params as the sphere's one
+    // create a built-in "ground" shape; its constructor takes the same 6 params : name, width, height, subdivision, scene, updatable
     var ground = BABYLON.Mesh.CreateGround('ground1', 6, 6, 2, scene);
     // return the created scene
     return scene;