chroms3 Posted March 15, 2016 Share Posted March 15, 2016 Hello. How do I get access, tankard? For example to move it via js. untitled1.zip Quote Link to comment Share on other sites More sharing options...
Carharttguy Posted March 15, 2016 Share Posted March 15, 2016 Hello Is it possible to tell a little bit more about what you're trying to do, and what isn't working? Quote Link to comment Share on other sites More sharing options...
amorgan Posted March 15, 2016 Share Posted March 15, 2016 Since you are loading a scene, which seems to have been exported from a software like Blender. You will need to access them via var tankard = scene.getMeshByName('Circle'); Circle was the name given most likely from the program used to create the .babylon file. I found this by inspecting the scene.meshes array. Note the scene loader seems to be using the camera from the scene, which is why your code does not create a BJS camera and use it. Otherwise you will want to use the Asset Manager to load in the .babylon file and access the task.loadedMeshes array and assign it to an object. Then access the meshes properties, ie tankard.position.x = 10; Please refer to the playground (http://www.babylonjs-playground.com/# ) and the tutorials ( http://doc.babylonjs.com/tutorials ), which are really good resources to learn more! chroms3 1 Quote Link to comment Share on other sites More sharing options...
chroms3 Posted March 15, 2016 Author Share Posted March 15, 2016 Спасибо больше. За исчерпывающий ответ. Я старюсь изучить babylon используя документацию. Но это затруднительно для меня так как я не в совершенстве владею знаниями английского. Quote Link to comment Share on other sites More sharing options...
amorgan Posted March 16, 2016 Share Posted March 16, 2016 No problem. Hope this helped. PS: I used google translate, I do not know russian 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.