No problem, I just hope I'm getting it right.
The formula gives you horizontal and vertical panning distances (camera x and camera y). You have it the right way round and combining the two components gives the vector to move along.
For the one that fits exactly you should pan the full distance in the respective direction. For the other direction I'd guess you should scale it down by the ratio of the distances, but I haven't worked that through.
Also, note that the panning distance is signed and this tells you which way to go along each axis.
Show differencesHistory of post edits
#1EWClay
Posted 22 February 2013 - 05:17 PM
No problem, I just hope I'm getting it right.
The formula gives you horizontal and vertical panning distances (camera x and camera y). You have it the right way round and combining the two components gives the vector to move along.
For the one that fits exactly you should pan the full distance in the respective direction. For the other direction I'd guess you should scale it down by the ratio of the distances, but I haven't worked that through.
The formula gives you horizontal and vertical panning distances (camera x and camera y). You have it the right way round and combining the two components gives the vector to move along.
For the one that fits exactly you should pan the full distance in the respective direction. For the other direction I'd guess you should scale it down by the ratio of the distances, but I haven't worked that through.