Scene Kit: projectPoint calculated is displaced

后端 未结 1 887
猫巷女王i
猫巷女王i 2021-01-16 09:21

I am trying do draw an frame over a sphere on the parent view of the scene, but for some reason the points converted by SCNScene.projectPoint method are displac

1条回答
  •  北恋
    北恋 (楼主)
    2021-01-16 10:21

    have to set z to zero on both world coordinates:

    v1w.z = 0
    v2w.z = 0
    

    explaining things help

    0 讨论(0)
提交回复
热议问题