Bam! Camera movement, pure jank implementation but on the right track
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user