jellix Posted June 26, 2016 Share Posted June 26, 2016 Hi, very simple question: How can I change the options of a generated Mesh like a sphere? Look at line 31: http://www.babylonjs-playground.com/#1FJR9Q#0 Thank you! Quote Link to comment Share on other sites More sharing options...
jerome Posted June 26, 2016 Share Posted June 26, 2016 you can't The parameters are used to build the sphere internal geometry. If you want to change its size after, just usr sphere.scaling Quote Link to comment Share on other sites More sharing options...
jellix Posted June 26, 2016 Author Share Posted June 26, 2016 Thank you! So I also cant' change e.g. the diameter of a cylinder and no other "option" of a generated mesh. Ok, I will have to look if I can achieve my goal just by scaling. Otherwise I should remove the old mesh and create a new one with other parameters. Quote Link to comment Share on other sites More sharing options...
Stvsynrj Posted June 26, 2016 Share Posted June 26, 2016 Hi ! Simply juste use : sphere.scaling = new BABYLON.Vector3(1.5, 1.5, 1.5); 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.