I’ve bought a set projection perspective digital camera with a vertical FOV of 70 deg and rotated 45deg on Y axis.
Participant motion is alongside Digicam’s X axis (proper/left), Z axis (entrance/again), Y axis is about to 0.
What I might like to attain is for the participant to maneuver straight in direction of the display screen high/backside when urgent ahead/again keys as a substitute of shifting alongside digital camera’s Z axis which causes and phantasm of touring at an angle the farther from the middle of the display screen you might be (which is smart however shouldn’t be desired on this case).
The screenshot beneath depicts:
- Inexperienced: Path to digital camera
- Blue: Digicam’s Z axis (participant motion
ahead/again) - Crimson: Desired ahead/again motion vector
I used to be capable of brute-force some values like if digital camera’s Z axis are at 45deg to the player-camera path then the specified rotation could be half of that (22.5deg) however I can not seem to discover a resolution for the remainder of the world positions as a result of my lack of Math data.