Firuz Posted November 19, 2018 Share Posted November 19, 2018 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 => { // }); Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 19, 2018 Share Posted November 19, 2018 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); 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.