unfortunately I have a big problem to solve in the shortest time:
the mission is to add many objects in the scene after a click with the mouse. Following an impossibility to have the intersection directly with the scene (I think it’s impossible) I had to add a plan at the scene.(like a ground)
var pickPlane = BABYLON.Mesh.CreatePlane(“mesh1”, 10000, scene);
pickPlane.billboardMode = BABYLON.Mesh.BILLBOARDMODE_ALL;
the problem is that I have to put the position of this plan is fixed relative to my camera or to find a solution without ground: /
thanks for ur time @Gijs and @PirateJC , i just add camera.attachControl(canvas, true); to your code @Gijs .
I want when i rotate the camera and i add a new sphere, the position of the new sphere will be at the origin(like i don’t rotate the scene ).
When you increase the ground size, the problem seems to be that when you rotate, the plane goes through the camera, is that the problem you are facing? Does this playground come closer to completing your mission?