Particle System Drag Factor Playground Example Has Error On Load

If you go to the playground example at https://www.babylonjs-playground.com/#BDW3BF#0, there is an error “createScene function must return a scene” when the page loads.Hopefully not an error between the keyboard and the seat. :slight_smile:

@TommyLeeThanks for popping onto the forum to discuss.

Not a bug in this case :wink:

Here it is fixed:
https://www.babylonjs-playground.com/#BDW3BF#7

It was in the way you were using the BABYLON.MeshBuilder.CreateBox constructor.

Originally you were giving it a “size” of 1.0 like this:

var scaleObject = BABYLON.MeshBuilder.CreateBox("scaleObject", 1.0, scene);

When what it wants is a list of options like this:

var scaleObject = BABYLON.MeshBuilder.CreateBox("scaleObject", { size:1.0 }, scene);