0 votes

As the title says, I just want to check for any bodies at a point.
I tried using Area2D, moving it to a specific point, and do getoverlappingbodies.
But it doesn't update, and the docs says it only updates once.

How would I do this without using signals? (it would be very awkward to use signals)
I remember there being some world space thing, that could check for intersecting bodies, but I don't know how to use it.
Any simple way to do this?

in Engine by (34 points)

1 Answer

0 votes

Okay after some messing around, I found out what it was

getworld2d().directspacestate.intersect_point()

by (34 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.