Improve debug geometry deletion


- Don't set the parent of the model to the collision shape since it will
  crash if the shape is destroyed before the model.
- On each frame update, remove all debug models that are not drawn.

Pick-to: 6.5
Change-Id: I41de03e05baa7c1c0b910a7437a9466bb76e0cc4
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commit0acca63c1ec0fd71a443f2810173529099072f08
parentd5c1588a889c627c4f228912bfb7f09a70cecb01
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeMon, 20 Feb 2023 11:11:46 +0100