Jump to content

Scaling imported scene


Adem
 Share

Recommended Posts

@Adem 
 

Yes, mesh.scaling = new BABYLON.Vector3( 1, 1, 1); //1 = no scaling, 2 = twice the size, etc.

but if your scene contains several, seperate meshes, it may mess with the positioning, scaling changes the size of a mesh, but not the position relative to other meshes,

See this example; 3 meshes, 2 spheres, one at each end of the plane,
http://www.babylonjs-playground.com/#1XGCEA#0

Now see the same scene scaled by 2.
http://www.babylonjs-playground.com/#1XGCEA#1

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...