Ive figured it out really was quite simple to be honest.
involved adding the radius of the circle to be rotated around to the objects position, then when the object had been rotated working out the objects current orientation
and multiplying that by the radius offset and taking it from the position before adding it the rotated corners.
Here's the code that is being used:
D3DXVECTOR2 X(cosf(Rot), sinf(Rot)); D3DXVECTOR2 Y(-sinf(Rot), cosf(Rot)); X *= halfWidth/2; Y *= halfHeight/2; Corner = Centre - X - Y; Corner = Centre + X - Y; Corner = Centre + X + Y; Corner = Centre - X + Y; float offsetX = orientation.x * Offset; float offsetY = orientation.y * Offset; D3DXVECTOR2 offset(offsetX, offsetY); pos -= offset; Corner += pos; Corner += pos; Corner += pos; Corner += pos; Centre += pos;
Thanks for all the help! Wouldn't have made it without the pointers in the write direction!