How to change the anchor point of billboard rotation?

Hi.

I have a small question.

I need your help.

My entities code:
map.entities.add({
position : Cesium.Cartesian3.from Degrees(),
billboard : {
image : Cesium.writeTextToCanvas(‘ANCHOR POINT’, {
font : ‘12pt Arial, sans-serif’,
fillColor : Cesium.Color.AQUA }),
rotation : Cesium.Math.toRadians(0),
alignedAxis : Cesium.Cartesian3.UNIT_Z,
verticalOrigin : Cesium.VerticalOrigin.CENTER,
horizontalOrigin : Cesium.HorizontalOrigin.LEFT }
})

I have to rotate the text using my code.

I need to rotate text from origin point.

However, the rotation of the billboard is based on the image center, not the origin point.

How do I rotate the text at the origin point?

Or can you tell me the location of the code related to rotation?

image

@YoonDaeHyoung welcome to the community forum! The origin point of the billboard is not necessarily the origin of rotation. I’m not sure there’s an easy way to do what you are trying to do at the moment, but the vert shader for BillboardCollection might be a good place to start.