Place and Scale a Mesh
Size
const box = BABYLON.MeshBuilder.CreateBox("box", {width: 2, height: 1.5, depth: 3})
const box = BABYLON.MeshBuilder.CreateBox("box", {})
box.scaling.x = 2
box.scaling.y = 1.5
box.scaling.z = 3
const box = BABYLON.MeshBuilder.CreateBox("box", {})
box.scaling = new BABYLON.Vector3(2, 1.5, 3)
Position
box.position.x = -2
box.position.y = 4.2
box.position.z = 0.1
box.position = new BABYLON.Vector3(-2, 4.2, 0.1)
Orientation
box.rotation.y = Math.PI / 4
box.rotation.y = BABYLON.Tools.ToRadians(45)
Position
mesh.position = new Vector3(2, 3, 4);
mesh.position.addInPlace(new Vector3(2, 3, 4));
mesh.translate(new BABYLON.Vector3(2, 3, 4), 1, BABYLON.Space.WORLD);
mesh.position.x = 2
mesh.position.y = 3
mesh.position.z = 4
mesh.position.x += 2;
mesh.position.y += 3;
mesh.position.z += 4;