【发布时间】:2020-04-20 00:24:41
【问题描述】:
我有这个代码:
var Collide = MoveAndCollide(new Vector2(speed.y * (float)Math.Cos(teta), speed.y * (float)Math.Sin(teta)));
if (Collide != null)
{
/* I need to get colliding objects parent node name here*/
}
这是我的树层次结构:
红色的是正在碰撞的物体。绿色的一个是我想要以字符串格式命名的那个。
【问题讨论】:
标签: c# mono collision godot collider