Rotation of scaled meshes

Having two scaled meshes. One is the parent of the other. On rotating the parent (hinge) the meshes changes there size.

@Cedric can you please have a look?

I’m on it

1 Like

@Necips

I’m not sure to understand, with or without rotation, boxes have the same size :
https://www.babylonjs-playground.com/#MIXXUC#1

When parented, mesh scaling is cumulated between parent and children.

Hi @Cedric,

this is a snapshot from my example in the chrome browser:

I would have assumed that the scaling does not change even if the box is assigned to a hinge. But if this is the defined behavior I am fine with and would avoid scaling in my projects in the future.

but this one is really buggy :slight_smile:

https://www.babylonjs-playground.com/#MIXXUC#2

No, there is no issue. It depends on the order of operation. Box2 get scaled in world or local coordinates depending when you attach it with its parent.

See : https://www.babylonjs-playground.com/#MIXXUC#3

ok. ticket closed.

The story behind: I created a human body with head, body, arms and legs connected by hinges and just wanted to change the scaling factor of each body part for each individual created body. Now I have to operate with own mesh vertice manipulations…

if you only change the scale of the root transform, it will be an uniform scale.