Say I have 2 settings: volume_cm and distance_cm and use STCameraPoseInitializerStrategyGravityAlignedAtVolumeCenter.
When I use these settings, it appears like the closest volume face is right against the camera lens as expected.
volume_cm = 200
distance_cm = 100
GLKMatrix4Translate(cameraPose, 0, 0, self.distance_cm / -100.0);
The same feels true for:
volume_cm = 100
distance_cm = 50
But if I want to keep the closest face at a fixed distance, eg:
GLKMatrix4Translate(cameraPose, 0, 0, (self.distance_cm + C * self.volume_cm) / -100.0);
// where C must be something like ±1, ±0.5
If I set the distance_cm at 100 cm, walk up to wall, such that just the closest face of cube is visible through the surface, then change the size of the volume box dynamically, I can’t keep the face fixed to the surface, so I must be doing something wrong.