Jump to content



Recommended Posts


I am trying to do a "OnPickTrigger" on a mesh after load with no success...no error in console but nothing happen

    // The first parameter can be used to specify which mesh to import. Here we import all meshes
    BABYLON.SceneLoader.ImportMesh("", "http://localhost/babylon/", "axonometrie.babylon", scene, function (newMeshes) {
        // Set the target of the camera to the first imported mesh
        //camera.target = newMeshes[0];
      //  alert(newMeshes[0].name); //show the name "test"
      newMeshes[0].scaling = new BABYLON.Vector3(0.1, 0.1, 0.1);
      // newMeshes[0].rotation = new BABYLON.Vector3(0, 0, 0);
      newMeshes[0].position = new BABYLON.Vector3(0, 0, 0);


        rdc = scene.getMeshByName("rdc");
        rdv_deux =  newMeshes[2];

        rdc.material = greenMat;
        //rdv_deux.material = greenMat;

        rdc.actionManager = new BABYLON.ActionManager(scene);
        var action = new BABYLON.InterpolateValueAction(BABYLON.ActionManager.OnPickTrigger, rdc, "visibility", 0, 200);



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