0 votes

I noticed that there isn't really a way to get shape indexes from an Area2D, even using the physics server. Is there any way to figure out which index a shape is assigned to? I figured out that using area_get_shape I can loop through the indices and compare RIDs, but I'd prefer to not do that since it's a lot of overhead for something so simple.

Godot version 3.2.2.stable
in Engine by (12 points)

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.