Jump to content

actionManager subMeshes ?


angeltrickz
 Share

Recommended Posts

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 ");
 
    }));
 
 

 

 

 

Link to comment
Share on other sites

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 :D )

 

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.

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...