Different scaling for x/y in ExtrudeShape

The ExtrudeShape is very usefull until you have to rotate the shape for example building a frame.
To keep the correct height, when you rotate the shape at the cornes, you must scale the height.
At the moment you scale the width too, so it would be nice if you can set a different scaling for x/y so that the width/height keeps the same (hope this is understandable :wink: ).

Have you tried ExtrudeShapeCustom?

Yes but you can only give one parameter into the scalefunction which is use for both, X und Y scaling.
( function(i, distance) )
The i is used for both.

Could you adapt Making A Frame | Babylon.js Documentation

1 Like