Set_scale on collision objects?

#1

It seems set_scale dosen’t effect collision objects, is it a bug with the new editor?
Is there any other way you scale collision objects in script?

0 Likes

#2

It’s a mixture of engine limitation and editor bug. Editor 2 displaying scaled collision objects even though they won’t be scaled at runtime has been reported here: https://github.com/defold/editor2-issues/issues/682

It’s a recurring complaint with the engine, but not really a bug, that you can’t scale collision objects at runtime.

There is one workaround: you can spawn new objects with different scales (must be uniform on all axes) and collision objects on the GO will be scaled appropriately. See here: Scaling Collision Object when Game Object is scaled (DEF-521)

2 Likes