angeltrickz Posted February 1, 2015 Share Posted February 1, 2015 Hi wanted to know if is possible to give shares to a submesh and if anyone can help me how to do it from blender greetings .. BABYLON.SceneLoader.ImportMesh("", "objetos/", "pelota.babylon", scene, function (newMeshes) { var pelota = newMeshes[0]; var submeshpelota = pelota.subMeshes[0]; submeshpelota.actionManager = new BABYLON.ActionManager(scene); submeshpelotaactionManager.registerAction(new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, function(){ alert("hola mundo "); })).then(new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, function(){ alert("chao mundo "); })); Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 1, 2015 Share Posted February 1, 2015 Hello!ActionManager is not supported on submesh:( Quote Link to comment Share on other sites More sharing options...
angeltrickz Posted February 2, 2015 Author Share Posted February 2, 2015 ok u.u thx Quote Link to comment Share on other sites More sharing options...
iiceman Posted February 2, 2015 Share Posted February 2, 2015 But the normal picking works, right? At least in this very basic Example here: http://www.babylonjs-playground.com/#1PNIGU (Note to myself: make a darts game ) Sorry, can't figure out the link to the doc article (how do I get a deep url for those again??), but it is at doc.babylonjs.com at Tutorials/The PlayPenTutorials/Picking Collisions. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 2, 2015 Share Posted February 2, 2015 To get deep link just click the icon right next the title of a page:http://doc.babylonjs.com/page.php?p=22111 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.