Scaling Meshes like on the video

Hello,

Is it possible to scale meshes like here on the Video in Babylonjs?

Sorry, I couldn’t upload it here because the video is a bit to long :smiley:

Best Regards,

Léon

Hey @Leon_Servais

Yes absolutely. You can set the pivot point of a mesh with this: Mesh | Babylon.js Documentation

In the case in this video, you’d set the pivot point to the opposite wall that you’re trying to “stretch.” Then scaling in one direction will scale out from that point.

Hope this helps.

1 Like