Scaling and positioning in Door Configurator

As a proof-of-concept I picked a GLTF model which is not mine – so it has not been designed specifically for this demo. I would consider it a complex model, as it has subobjects.

When the [Expand] button is clicked, the model is cloned into three copies – one expanded along X, another one along Y and a third one along Z.

The model is expanded, not scaled, thus peripheral shapes are preserved and only the central parts are stretched. Try it here:

https://codepen.io/boytchev/full/yLQJZdr

image

PS. Currently the model is expanded in respect to its central point, it might not be the best one for this tractor, but still it is good for demonstration purpose.

2 Likes