hello,
I have a billboard that I would like to always face north.
whenever something changes the billboard rotation , I want the camera to rotate accordingly
so the billboard would still face notrh.
I have written the following function but it doesn’t work as expected.
Note - I am using COLUMBUS_VIEW.
const setBillboardRotation(myRotation) => {
const camera = viewer.scene.camera;
billboard.aligenAxis = Cesium.Cartesian3.UNIT_Z;
const prevRotation = billboard.rotation;
const diff = myRotation - prevRotation;
camera.look(camera.diraction,diff);
billboard.rotation = myRotation;
}
What am I doing wrong?