How to change the rotation center in billboard mode to the bottom of the plane? Or parent?

Hey All, When I look down, plane will cover his parent. like this:
20210817220150

pg: billboardmode all | Babylon.js Playground (babylonjs-playground.com)

Hey!
you can change the pivot with:

plane.setPivotMatrix(BABYLON.Matrix.Translation(0, -2.5, 0));

But honestly I’m not sure that this is what you need

Thanks . I tried this. But it doesn’t seem to affect the plane with billboardmode
set pivot pg:
billboardmode all , pivot | Babylon.js Playground (babylonjs-playground.com)
temporary solution pg:
not billboardmode all , lookat | Babylon.js Playground (babylonjs-playground.com)
(set parent look at camera. I don’t think it’s the best way)

1 Like

This is super fine!

1 Like

Your example doesn’t work

In billboard mode, can you suggest adding the attribute center as the rotation center? Refer to three js
https://threejs.org/docs/index.html#api/zh/objects/Sprite.center

Use .bakeCurrentTransformIntoVertices() to do that