Sign in to follow this  
BritneyWatch

Sphere1.scaling = new BABYLON.Vector3(0, 5, 0) doesn't work but Sphere1.scaling.y = 5; works WHY ?

Recommended Posts

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);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.