oschakravarthi Posted November 19, 2018 Share Posted November 19, 2018 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? Quote Link to comment Share on other sites More sharing options...
VoyVoda Posted November 19, 2018 Share Posted November 19, 2018 Hello, 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; Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 19, 2018 Share Posted November 19, 2018 All the different lines works for me: 1 - https://playground.babylonjs.com/#8RS15Q#2 2 - https://playground.babylonjs.com/#8RS15Q#1 3 - https://playground.babylonjs.com/#8RS15Q Quote Link to comment Share on other sites More sharing options...
oschakravarthi Posted November 20, 2018 Author Share Posted November 20, 2018 Thank you all. My mistake. I was using BABYLON.Mesh.CreateBox instead of MeshBuilder Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.