Rotating decal in babylon js

I am looking for a way to rotate the decal.
I am adding properties object to a decal object so I can read it’s values on every clone, so I can change only changed properties and leave unchanged ones.
The same thing I want to do with rotation. I am thinking about setting rotation property to 0 and then on users action I want to change the value of that property and add it as new rotation value which will be applied to new cloned decal.
I am not sure how could I set rotation on adding decal.

Decal has the angle property: Decals | Babylon.js Documentation (

Example with random rotation: Drawing HTMLCanvasElement as Decal | Babylon.js Playground (


Thanks you. Unbelievable how I didnt notice it.

It happens :rofl: