Hi,
I have trouble finding the position of a sprite in relation to another sprite. The setup is as follows:
Layer
–Subclass of Node (lets call this spaceship)
----Sprite
–Subclass of Node (lets call this planet)
----Sprite
The planets sprite is positioned with an offset, the planet node is then rotated, so the planet sprite moves in a circular fashion around the planet nodes position.
The spaceships sprite is positioned at 0,0 with the anchor point slightly adjusted so rotation is around the spaceships front rather than 0,0.
The layer runs a follow action on the spaceship.
I want to check for collisions. I can not figure out how to get the actual sprites locations on screen or in relation to a common object, say the layer. Any help would be greatly appreciated.
Thanks, dih