Scaling Convexshape Collision Shapes

Is there a way to scale a Collision Shape tied to a .convexshape? I couldn’t find similar posts googling or searching the forum.

I get this rather strange result for some reason:

ScalingCustomCollisionShapes.zip (277.7 KB)

In the end I didn’t need to resize the model and attached collision shapes (phew). I guess this is still a bug? If so I’m happy to add a GitHub issue for it.

Please do!

Done: https://github.com/defold/defold/issues/6373

Interesting additional info I came across when reporting;

The issue only seems to only apply when using collection factories. All these cases work as expected:

  • Scale a collection containing the collision shape inside the editor.
  • Scale a game object containing the collision shape inside the editor.
  • Create a game object containing the collision shape with a factory with a scale other than 1.0.
2 Likes