- Home /
Question by
barjed · Mar 09, 2015 at 02:54 PM ·
camerarotationtransformcamera-movement
Clamping cameras with different rotation
Hi,
I have a following problem.
Consider Ortographic Camera (A) with no rotation. It's clamped to a calculated rect shape in XY plane.
Consider Ortographic Camera (B) with rotation of (30,45,0).
Now I want to clamp B so that when A reaches the end of it's rect shape (clamp starts to work), B stops moving as well.
The problem here is that while A moves only in XY plane, B moves in XYZ space, so the Z needs to be clamped somehow.
Both of the cameras move together at the same time and are perfectly synchronized until A reaches it's bounds.
Could anyone recommend something? Thanks!
Comment