bevy_rapier
bevy_rapier copied to clipboard
Update IslandsManager after deleting rigid bodies
Without updating the IslandsManager after removing rigid bodies, later systems may try to access the removed bodies. For example, calling IslandsManager::active_kinematic_bodies() sometimes returns invalid handles if cleanup_removed_rigid_bodies() is not called after rigid bodies are removed. Potentially fixes issue #285.