How to retreive the properties of the decal mesh (sourcemesh, position, normal, size and angle,) in Babylonjs

when i enter decalMesh.sourceMesh, it returns undefined

After creation, a decal mesh is no different than a regular mesh. If you want to retrieve the parameters you used to create it, you should store them somewhere. For eg, on the decal mesh itself:

const decalMesh = ...; // create the decal mesh
decalMesh.decalSize = size;
decalMesh.decalAngle = angle;
1 Like

Thank you so much for the reply