Add rotation to structures rendering

This commit is contained in:
2022-11-01 03:57:16 +01:00
parent b59aa96b97
commit 5fa146e583
2 changed files with 14 additions and 5 deletions
+2 -2
View File
@@ -13,12 +13,12 @@ pub struct CameraState {
rotate_right: bool,
}
const SPEED: f32 = 1.0; //1.0;
const SPEED: f32 = 10.0; //1.0;
impl CameraState {
pub fn new() -> CameraState {
CameraState {
aspect_ratio: 1_024.0 / 768.0,
aspect_ratio: 1_920.0 / 1_080.0,
// The second coordinate is for the altitude.
position: (3_646.41, 12.3622, 13_113.7),
direction: (0.0, 0.0, -1.0),