![](https://godoter.cn/assets/files/2024-07-21/1721575631-924508-vivaldi-rxk19aazpf.png)
api文档里有示例
var target = get_collider() # A CollisionObject2D.
var shape_id = get_collider_shape() # The shape index in the collider.
var owner_id = target.shape_find_owner(shape_id) # The owner ID in the collider.
var shape = target.shape_owner_get_owner(owner_id)