From 9975d8b2bf1410f20aa7c91cbd19094931973343 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 30 Mar 2024 22:31:07 +0100 Subject: [PATCH] smoother handling of vehicle entrance/exits, also fixes adrenaline --- src/actor.rs | 62 ++++++++++++++++++++++++++------------------------- src/camera.rs | 11 +++++++-- src/world.rs | 2 +- 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/src/actor.rs b/src/actor.rs index 6863ab7..4240846 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -141,7 +141,12 @@ impl Default for LifeForm { fn default() -> Self { Self { }}} #[derive(Component)] -pub struct Vehicle; +pub struct Vehicle { + stored_drivers_collider: Option, +} +impl Default for Vehicle { fn default() -> Self { Self { + stored_drivers_collider: None, +}}} #[derive(Copy, Clone, PartialEq)] pub enum EngineType { @@ -194,17 +199,17 @@ const SUIT_SIMPLE: Suit = Suit { pub fn update_physics_lifeforms( time: Res