Deprecated method in the documentation (mesh.CreateSphere, CreateGround)

Here: Babylon.js ES6 support with Tree Shaking | Babylon.js Documentation

// Our built-in 'sphere' shape. Params: name, subdivs, size, scene
var sphere = Mesh.CreateSphere("sphere1", 16, 2, scene);

// Our built-in 'ground' shape. Params: name, width, depth, subdivs, scene
var ground = Mesh.CreateGround("ground1", 6, 6, 2, scene);

But by JSDoc these methods are depreacted Babylon.js/mesh.ts at fdbf393d1d7699dc7cc69cec1dca0819ebd2622a · BabylonJS/Babylon.js · GitHub

SSorryfor the late reply - We have an issue for that - Remove all mentions of deprecated functions in code samples · Issue #359 · BabylonJS/Documentation (github.com), and I will do my best to address it asap.

Thanks!

1 Like