c75 Posted November 26, 2015 Share Posted November 26, 2015 Guys, i've got scene.pick problems using two cameras. Here is the demo of the problemhttp://www.babylonjs-playground.com/#M3K0C I added another camera and "scene.pick" stop working wellset "cameraToUseForPointers" to playerCamera dont help.What I miss? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted November 26, 2015 Share Posted November 26, 2015 Hi, Fix here : http://www.babylonjs-playground.com/#M3K0C#1 I use: scene.onPointerDown = function (evt, pickResult) { }; for better compatibility c75 1 Quote Link to comment Share on other sites More sharing options...
c75 Posted November 26, 2015 Author Share Posted November 26, 2015 ah, just forgot to set camera for picking Here is the working demo:http://www.babylonjs-playground.com/#M3K0C#2 Dad72, your solution works well too, thanks a lot! 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.