I am trying to temporary disable the collision shape (child) of a rigid body, then re-enabling it as suggested here, using:
mRigid.mode = MODE_STATIC
get_node("Collision-cube").disabled = true
mRigid.mode = MODE_RIGID
get_node("Collision-cube").disabled = false
This works well for a while, then suddenly, when more objects are created, some collision are not detected anymore... (tried using CCD, can_sleep = false, sleeping = false...not to avail)
Any specific rule I should respect when toggling off/on collision shape ?