issue with Godot 4.0.2 Collision and visibility

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sajeg

In Godot 3 you could just toggle the visibility of a parent (e.g. StaticBody3D) and it children weren’t visible anymore. But in Godot 4 the player collides with the Collision Shapes although they aren’t visible.
Is the a better way than cycle through the children and set disabled = true?

It’s the same in 3 as far as I know; a colliders visibility doesn’t change its interaction with physics; visibility is a property of CanvasItem. You should set disabled appropriately (via set_deferred (doc)).

spaceyjase | 2023-05-04 10:44