How do you get the shape index in an area2D from the shape RID?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By verticalegg

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.