]> git.nega.tv - josh/narcissus/commit
shark: Fix parameterization of top-down camera
authorJoshua Simmons <josh@nega.tv>
Wed, 1 May 2024 14:55:53 +0000 (16:55 +0200)
committerJoshua Simmons <josh@nega.tv>
Wed, 1 May 2024 16:31:53 +0000 (18:31 +0200)
commit6b2d645e6273cfee42f504cdb8cab72cf19f30ad
tree10cbdd9302561644a3ce3c3da564d2d66208bde0
parentb593880eb34352a377951c14257b098591ae70ce
shark: Fix parameterization of top-down camera

Using the camera height and camera angle to define a camera is
unfortunate as those to variables are tightly coupled; Adjusting the
camera height requires a camera angle adjustment to maintain the same
distance from the camera, and visa-versa.

Instead, calculate the height from the desired camera distance so these
variables can be changed independently.
title/shark/src/main.rs