Hi all,
I’m having some trouble implementing a billboard drag feature. I have so far gotten a singular drag to work, but unfortunately am having trouble implementing that with multiple billboards selected at once. The idea is, on selection of one billboard, move all (selected) billboard with it. My result so far can be seen in this Sandcastle, or in this screenshot:
I have tried a few different ways to get the icons to stick down on the globe, including setting cartesian3.z = 0, changing to a cartographic and setting that height to 0 but to no avail so far - when doing those, the billboards sometimes all stay on earth but dragging them around results in the billboards no longer being the same distance apart from each other as they started out.
For the purposes of this feature I believe it would be ideal to keep the billboards relative to each other in terms of physical distance (meters, etc), but could also accept relative to initial lat/lon.
Any help is greatly appreciated!!
quick followup - this is one example of keeping the billboards tied to earth but not relative to each other. In this sandcastle I’ve added heightReference: Cesium.HeightReference.CLAMP_TO_GROUND
which does lock the billboards on the globe but pretty clearly does not keep them relative to each other as shown in the screenshots:
dragged halfway around the world they are transposed:
figured some more context would be helpful