فهرست منبع

Merge pull request #3531 from dad72/patch-1

Corrects the information in the comments.
David Catuhe 7 سال پیش
والد
کامیت
76ee9d9783
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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;