BILLBOARDMODE_ALL get rotation angle


i want rotation angle values of the box.Mesh.BILLBOARDMODE_ALL

i found below link for reference

in my project, i like to save rotation values of box, but i didn’t find answer . please help on this

You can utilize the absoluteRotationQuaternion-getter of Mesh.

Example PG, that gets rotation by scene pointer down:


can we get rotation angle console.log(box.absoluteRotationQuaternion) without pointer down ,

i mean immediate after object creation.

var box = BABYLON.MeshBuilder.CreateBox(“box”, {size: 1}, scene);
box.billboardMode = BABYLON.Mesh.BILLBOARDMODE_ALL;

If you get the angle exactly after creation, it will be zero, because the billboard calculation won’t have run yet. But you could get it after the first time the scene is rendered: Billboard Get Rotation Values | Babylon.js Playground (

1 Like