Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | toMakeIt |
I found it’s possible to get objects by position using Physics.OverlapSphere in Unity.
To do so in Godot, I’ve used function get_overlapping_bodies()
of area node that returns a list of intersecting PhysicsBodies.
But I couldn’t get latest list.
How to make the list can be modified immediately?
or is there a better way?
You can use get_overlapping_bodies()
to check for said bodies. But the use of it is discouraged because it incurs a performance penalty (and it only calculates on the physics step). In the documentation, it’s recommended to use signals.
Ertain | 2020-05-23 17:34