I think it would be great to convert the weird pan units (0-1000) into degrees azimuth (-60 to 60) so that it's more sensible for other people looking in. You need to be able to convert degrees back into the weird pan units, too (int((degrees + 60) / 120 * 1000)).
You could also convert the block locations/sizes etc. into degrees, and then subtract the camera pan from the locations so that the location is in the whole field of view rather than just every single snapshot - you might need to do some averaging or something to figure out object permanence while panning.
I also think you should return something other than the weird blocks global because working in C arrays just isn't necessary - a tuple would be fine.
I think it would be great to convert the weird pan units (0-1000) into degrees azimuth (-60 to 60) so that it's more sensible for other people looking in. You need to be able to convert degrees back into the weird pan units, too (
int((degrees + 60) / 120 * 1000)
).You could also convert the block locations/sizes etc. into degrees, and then subtract the camera pan from the locations so that the location is in the whole field of view rather than just every single snapshot - you might need to do some averaging or something to figure out object permanence while panning.
I also think you should return something other than the weird
blocks
global because working in C arrays just isn't necessary - a tuple would be fine.