How to move multiple entities at once?

53 views
Skip to first unread message

Keaton

unread,
Jun 14, 2019, 1:13:27 PM6/14/19
to cesium-dev
Hi there,

I'm trying to make it so that if one entity has its position updated, a separate entity also gets updated to the same position. Is this possible to do without manually changing the position value of the second entity?

Thanks!

Scott Hunter

unread,
Jun 14, 2019, 4:34:16 PM6/14/19
to cesiu...@googlegroups.com
In CZML you can use a Reference to indicate that one property's value should point to another property.   https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/ReferenceValue

In the Cesium Entity layer this corresponds to a ReferenceProperty: https://cesiumjs.org/Cesium/Build/Documentation/ReferenceProperty.html

Alternatively, in the Entity layer in JavaScript you can just assign the same Property object to two different entities.


--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cesium-dev/bc0decf2-1e81-4e0d-aede-3db9a38cea7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages