olrehm Posted February 21, 2017 Share Posted February 21, 2017 Unfortunately I have little to reproduce: I have a custom build hexagonal grid with out-of-the-box cylinders on it. The camera is a TargetCamera. In 2.5 clicking on a cylinder picks it (using scene.pick) in the current preview release, it picks the hexagonal grid tile below. I stepped through the non-minified BabylonJS code a bit, and it seems it has nothing to do with isPickable, isVisible or isEnabled() - it is actually the intersection check that seems to have regressed: https://github.com/BabylonJS/Babylon.js/blob/master/src/babylon.scene.ts#L2872 Sorry for not providing a minimal test case. I have downgraded to 2.5 for now, but I thought you still might want to take a look, and maybe you already have a hunch of what might be causing it. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 21, 2017 Share Posted February 21, 2017 Hello unfortunately all tests I did are working I need a real repro case Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted February 25, 2017 Share Posted February 25, 2017 Just a thought: current BJS version has the new inspector, which change the canvas styling to allow positionning on the right. Are you using the debug layer ? This may change your page layout, which may lead to pick with wrong coordinates... Quote Link to comment Share on other sites More sharing options...
Temechon Posted February 26, 2017 Share Posted February 26, 2017 The debug layer does not interfere with the picking coordinates, as they are local to the canvas. You can try it on the playground (in 'Picking' tutorial) 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.