Jump to content

3d model positioning


Recommended Posts

Hello! I need your help.
I use Angular 7 + babylonjs and added a 3D model (.obj format) to the project. The model was imported and the problem is how to position this model?

BABYLON.SceneLoader.Append('../assets/models/bmw/', 'BMW_M3_GTR.obj', this.scene, scene => {



Link to comment
Share on other sites

Hello and welcome to the forum,

Once your model has been loaded in the callback, you could find the mesh or meshes you need to move and update their position:

scene.getMeshById('THEIDOFTHEMESH').position.x = 100;

or if there is only one mesh in the scene for instance:

scene.meshes[0].position.x = 100; 

Another approach would be to move the camera or recreate one that fits to the model with scene.createDefaultCamera(true, true, true);


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.

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.


  • Recently Browsing   0 members

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