is a combination of this one:
Here is what I’ve got so far: https://www.babylonjs-playground.com/indexStable.html#UTINNB#9
Generally it’s working, just a couple of questions please:
in my app the selection of the any of the three blue objects (they are even more actually) works every time, but in the playground linked it works from time to time and only if the object is roughly in the center of the viewport - how to fix this?
the axis drawings (the lines) are rather anemic - what’s the best way…
where @Deltakosh said “…a bug where the ray caster considers meshes on the wrong layer…”
and this one:
Good find, I’ll add this logic to the detach method on the behavior so this isn’t required.
where we want to drag objects in the XZ plane.
PROBLEM: while an object is dragged the scene moves too (suspect the problem is that PointerDragBehavior.detachCameraControls does not kick in).
SITUATION: 3 blue objects in the first viewport, and the axis pointers in the second one (lower left corner).
I the case of one camera/viewport - this problem does not occur.