Bam! Camera movement, pure jank implementation but on the right track

This commit is contained in:
2021-02-13 01:34:49 -08:00
parent 189805dd13
commit 9c48da280c
6 changed files with 334 additions and 300 deletions

View File

@@ -3,8 +3,17 @@ use std::sync::Arc;
use rapier3d::dynamics::{RigidBody, RigidBodyHandle};
use rapier3d::geometry::ColliderHandle;
use rapier3d::geometry::Collider as r3dCollider;
use std::time::{Duration, Instant};
// a component is any type that is 'static, sized, send and sync
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct LoopState {
pub delta_time: Duration,
pub start_time: Instant,
pub step_size: f32,
}
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Position {
pub x: f32,