BritneyWatch Posted December 7, 2018 Share Posted December 7, 2018 Sphere1.scaling = new BABYLON.Vector3(0, 5, 0); doesn't work but Sphere1.scaling.y = 5; works why ? Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted December 7, 2018 Share Posted December 7, 2018 Hi @BritneyWatch Sphere1.scaling = new BABYLON.Vector3(0, 5, 0); works but it sets X and Z values to 0, so i expect your sphere will disappear. Scaling multiplies the size of a mesh, multiply by 0 equals 0 To keep X and Z at 100% size and set Y to 500% size you should instead do new BABYLON.Vector3(1, 5, 1); Quote Link to comment Share on other sites More sharing options...
BritneyWatch Posted December 7, 2018 Author Share Posted December 7, 2018 THANK YOU ! So Is this note of mine accurate ? Sphere1.scaling = new BABYLON.Vector3(1,5,1); //As you can tell 1 = 100%. //or you can manually Sphere1.scaling.y = 5; Quote Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2018 Share Posted December 7, 2018 This is correct Quote Link to comment Share on other sites More sharing options...
BritneyWatch Posted December 7, 2018 Author Share Posted December 7, 2018 Thank you ! 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.