The problem of the central axis of rotation in billboard mode

https://playground.babylonjs.com/#T6IN6X#577;
With setpivotpoint setting, billboardmode cannot rotate around the Yellow sphere

This is exactly what I want
https://playground.babylonjs.com/#T6IN6X#578
Solution: https://forum.babylonjs.com/t/how-to-change-to-pivot-point-of-billboardmode/24548

plane.position.y = 1;
plane.bakeCurrentTransformIntoVertices();
plane.billboardMode = BABYLON.Mesh.BILLBOARDMODE_ALL;

The credit goes to bakeCurrentTransformIntoVertices into vertices

2 Likes