For debugging purposes, it would be useful to convert a Collider back into a ColliderDesc - the reason for this is lifetime. Once a collider has been removed from the world, any attempt to access its properties throws an unreachable error. Worse, there's no method on the collider that can be used to detect whether the collider is still valid. For debugging, I'd like to be able to display the properties of the collider without the debug UI having to worry about the lifetime of the collider.
For debugging purposes, it would be useful to convert a Collider back into a ColliderDesc - the reason for this is lifetime. Once a collider has been removed from the world, any attempt to access its properties throws an
unreachable
error. Worse, there's no method on the collider that can be used to detect whether the collider is still valid. For debugging, I'd like to be able to display the properties of the collider without the debug UI having to worry about the lifetime of the collider.