碰撞检测回调函数

  • Creator 版本:2.0.9
  • 出现概率:偶尔

碰撞检测时,获取的 other.node 是一个cc.Node,
但获取 other.node.parent 却是 null,输出 other.node._parent 也是 null
我确认 父节点是存在的,没有销毁,只是偶尔会出现这个情况
有没有大神知道怎么回事,感谢

other.node 被你销毁了

other.node也没有销毁,碰撞后 other.node还在场景里,只是偶尔会出现这样情况

你把所有可能会销毁的代码都注解掉看还会不会。