How to change the properties of a collision object via script?

Hey there.

Is there a way to change the size of a collision object, f.e. the diameter of a circle via script?

I like to change the collision-sizes dynamicly.

At the moment, I believe you still have to destroy / recreate via a factory with new scaling set to get a size change. I think there is a better solution in progress if I remember right. And scale factor must be uniform. You can make some functions which make it as simple as setting the new scale and it handles recreation at new scale.

If you have a few set sizes you could also add collision objects of those sizes and then disable/enable them.

1 Like