BABYLON.MeshBuilder.CreateBox("box", {}, scene);  not creating any box

Recommended Posts

var box1 = BABYLON.MeshBuilder.CreateBox("box", 1, scene);  --CREATING A BOX


var box2 = BABYLON.MeshBuilder.CreateBox("box", {}, scene);  --NOT CREATING ANY BOX

var box3 = BABYLON.MeshBuilder.CreateBox("myBox", {height: 5, width: 2, depth: 0.5}, scene);--NOT CREATING ANY BOX


Am I doing anything wrong?


Share this post

Link to post
Share on other sites


You can check the sample here. https://www.babylonjs-playground.com/#3qw4j1#1

If you believe everything is right, you should check the camera settings. Your camera might be looking at a different place. Or it may be far away from the box you created.

Finally, the other cubes you create may be hidden in the first cube. Can you try that?

1- box2.position.x = 3;

2- box3.position.x = 6;

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.