SKSpriteNode frame way off

前端 未结 1 892
粉色の甜心
粉色の甜心 2021-01-24 05:31

I am trying to create an open circle from a UIBezierPath and turn that into an SKShapeNode which will later be turned into a SKSpriteNode.

I had an problem where I could

相关标签:
1条回答
  • 2021-01-24 06:07

    I think part of your problem is the difference between where you have your lines versus where the bitmap edges are as a result of the stroke/outline width you have 'around' those lines.

    Perhaps best described visually, whereby Red is what the system sees as the sprite size, whilst yellow is perhaps what you're thinking about. I've greatly exaggerated the line width to show the effect/problem I'm thinking about.

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