0 votes

Hello! I'm fairly new to the engine.

I'm trying to get which sides an Area2d is overlapped by, so I can push the player back if they're walking into a wall.

Is there a specific way I can do this?

Godot version v3.3.4.stable.official
in Engine by (17 points)

I'm trying to get which sides it overlaps (e.g. left, right, bottom, top), not what it overlaps. Thank you for looking around a bit, though!

I guess Area2d has no collision points

Getting the global_position of the object entering the Area
Of course, there are other solutions as well.

Please log in or register to answer this question.

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 Frequently asked questions and 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 [email protected] with your username.