Add rotation to structures rendering
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user