Scale mesh collision on runtime

I am scaling an entity and i need the mesh collision to scale with it.
This is a simplified scene where i scale a cube with setLocalScale but the collision component remains the same size.

Is there a way for the collision component to scale?

Thanks in advance.

You can’t scale at runtime unfortunately. Ammo.js doesn’t allow it (looking at the API). You can destroy the mesh collision and recreate (as seen here: but that isn’t something you want to do every frame. The occasional resizing will be ‘fine’ but if you want to scale something something overtime, I’m afraid that is not possible.

1 Like

Like always. thank you very much.