Getting Shape2D from shape_index from Physics2DDirectSpaceState::intersect_point

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

Hi,
I use the methods from Physics2DDirectSpaceState and want to get the Shape2D from the returned shape_index. I could manage this with shape_find_owner and shape_owner_get_owner, but this doesn’t work with those objects that don’t use CollisionShape2D like TileMap. How do I generally get Shape2Ds from shape indices and an object?
Thanks!