Globe anchor data changing on reparent

Hi,

I have a mesh object that has a GlobeAnchor. This correctly attaches to the Cesium Globe. I then draw some other objects onto this mesh, those objects too have a GlobeAnchor.

I’m surprised to see that on these objects the GlobeAnchor data seems to change on whether the object is parented to the mesh or not: Screen capture - d3f750b1b6317f19faa77553b52f439c - Gyazo

Shouldn’t the GlobeAnchor stay consistent (relative to the Globe)? This seems to result in Objects not being correct ‘drawn’ onto the mesh as I would expect (because I’m setting the Ecef of the GlobeAnchor).

Am I missing something? Or do you not support GlobeAnchor to be a child of a GlobeAnchor?

Thanks, Jake

Hi @Jake_Slack,

Apologies for the slow response. To be honest, we hadn’t considered the case of nested globe anchors and I’m not sure what the expected behavior would be. What’s the motivation to nest these globe-anchored objects – are they unable to be separate?

No worries, thank you for the repsonse!

I don’t know how others feel but I would expect a nested GlobeAnchor would have its Unity Transform update as a standard Unity Parent-Child Transform would - so in global space the child would move with its parent.

Of course if the user had ‘DetectTrasformChanges’ enabled, the GlobeAnchor on the child would update to the new location as the parent was moving.

The motivation in our case is that we are linking 3d images to mesh objects that are placed on the globe - so moving the mesh will keep the same relatively offset to the image. These images are their own distinct entities and have their own transforms and GlobeAnchors (they also have the aiblity to “parent” to other mesh objects if the user wants).

We have worked through the limitation by updating any “child” when the “parent” moves but it would be nice if this was just handed ‘out the box’.

Thanks!