SKSPriteNode position changes to 0,0 for no reason

后端 未结 1 1771
有刺的猬
有刺的猬 2020-12-07 02:28

I create an SKSpriteNode in didBeginContact method with location of contact:

CommonBox *boxTwo = [[CommonBox alloc] initWithTexture         


        
相关标签:
1条回答
  • 2020-12-07 02:50

    I found out my mistake - you have to create physics body after you set node position. Setting position after physics body has position doesn't do anything.

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