Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ateff |
Let’s say I need to check if there is an object “a” at point A (x, y), how can I do this?
Like so?
if object_a.global_position.distance_to(Vector2(x, y)) < 1:
print("Yes, object a is very close to (x, y)")
Thomas Karcher | 2020-12-18 23:02
Is this the best way?
ateff | 2020-12-19 07:26