How do I create a collision sphere temporarily?

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

Hy everyone,
How do I create a collision sphere temporarily?
If I want to initialize 3d tiles, I need to know if they are walkable or not. To do this, I would like to know if the tile is in contact with an object placed in an unwalkable layer. Only then I don’t need these collison spehres anymore once the test is done. Do you have any idea how to do this?

I’m trying to reproduce this tutorial in godot (15:08) :
Sphere Collider

Good day,

:bust_in_silhouette: Reply From: SteveSmith

Remove the sphere after an iteration of the _process() method.