I have been looking into the CGAffineTransform stuff some more, i found CGRectApplyAffineTransform, I think this is what I'm looking for but i cant quite get it work right.
Here is how i think i should be applying the AffineTransform -
CGRect myRect;
CGAffineTransform rotateME;
myRect = CGRectMake(x,y,w,h);
myRect.origin = ccp(x,y);
rotateME = CGAffineTransformMakeRotation(CC_DEGREES_TO_RADIANS(45));
//rotateME = CGAffineTransformMakeTranslation(0, 30);
myRect2 = CGRectApplyAffineTransform(myRect, rotateME);
This is moving the the rectangle, but not in anyway that makes sense. Am i setting the origin in the right place? Am i even on the right track for rotating a CGRect?
The line I have commented out works fine and moves the rectangle up 30 pixels.
This is one of the last major things I've got to get working. I'm really new to this, and learning as much as i can via the forums and hours of Google searches, but this one has got me really stuck...
Thanks for your help.
Dave