Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why SKShapeNode does not have anchor point? [closed]

i am trying to understand why SKShapeNode does not have an anchor point ?

like image 887
Sureyya Uslu Avatar asked Dec 21 '13 16:12

Sureyya Uslu


1 Answers

When you use an image you may need to align it on its node's position. There's no other way to do so but through anchorPoint because the image itself can't be modified (not easily anyway).

When you create a shape you have full control over the alignment of the shape through CGPath. You can simply translate the path to change the shape's alignment relative to the node's position.

This is my interpretation, not fact.

like image 135
LearnCocos2D Avatar answered Sep 22 '22 12:09

LearnCocos2D