worked out offsets, target_offset is now correct though not yet rotated