dbs2000 Posted July 15, 2015 Share Posted July 15, 2015 Can we create box with unequal dimensions in babylon js. In other words by specifying height width & depth. In Three js BoxGeometry provides 3 parameters in it constructor - height, width & depth. Is there anything similar in babylon js. Here, CreateBox takes one size & always create a uniform cube. Thanks Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 15, 2015 Share Posted July 15, 2015 No, we cannot do exactly the same in Babylon. But yo ucan specify the scaling of the box afterwards :; box.scaling = new BABYLON.Vector3(width, height, depth) Quote Link to comment Share on other sites More sharing options...
dbs2000 Posted July 15, 2015 Author Share Posted July 15, 2015 Thanks Temechon... that works for me... it was not clear in the documentations.. after your suggestion I checked the "playground" samples & found it over there... thanks... 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.