billboard allignedaxis

How do we set the billboard allignedaxis as the vector defined by a line joining two points?

The two points have latitude,longitude and elevation.

Hello,

You need to convert the points to Cartesian3 values. You can do this using ‘var point = Cesium.Cartesain3.fromDegrees(longitude, latitude, elevation)’

You can then get the vector by subtracting the two points. Finally, you’ll want to normalize the vector using Cesium.Cartesian3.normalize

See the documentation for Cartesian3: http://cesiumjs.org/Cesium/Build/Documentation/Cartesian3.html

Best,

Hannah

Thanks for the reply. I tried doing the same. But the axis of the billboard is still aligned to north. Any further suggestions?

It is working now. I was giving attribute to the entity instead of billboard. Thanks.