Collision shape inherits scale from parent

What’s going on in this video? I want the collision shape to have the same size as the model, and usually I just scale both the parent and the collision shape as it usually doesn’t inherit the parent’s scale. But here the collision shape is scaled when I change scale of all the parent’s dimensions. Note that the collision shape is not scaled until all three values are changed.

I think we require uniform scale of collision shapes and it will be the smallest value which is used for the scale of the shape.

2 Likes

Thank you! I just found it in the collision shape manual too… Then I guess unchecking Allow dynamic transforms will solve my issues.

Oh, Allow dynamic transforms just changes the behavior in-game right? The initial size (and the size shown in the editor) is still a combination of the collision shape’s dimensions and the smallest scale value of the parent. In that case I have to calculate what to put in the dimensions field of the collision shape.

Example: A parent with scale=(2, 3, 4) needs a collision shape with dimensions=(2/2, 3/2, 4/2)=(1, 1.5, 2) to be covered fully. I guess it’s not the end of the world, just a little bit confusing.

Iirc, with dynamic transforms, the scale parameter to the factories will be used. So it is more dynamic than just using the original setup from the editor.

We have another feature coming soon (probably 1.6.4) where you can resize the individual shapes at runtime.

2 Likes