let check_node_collider = check_node.getComponent(cc.PolygonCollider);
这里check_node_collider的point属性获取的是局部坐标,在使用cc.Intersection.pointInPolygon做判断时,最好统一采用世界坐标
check_node_collider.world.points,避免不必要的麻烦

相关文章:

  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2021-08-31
  • 2021-08-17
  • 2021-04-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案