From 091160ba70f49ad700b70721c1fd9fbef7bb74ba Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Mon, 1 Aug 2022 23:18:38 +0200 Subject: bevy_ggrs 0.8 --- src/main.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 909e174..d37fdde 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,16 @@ use bevy::{prelude::*, render::camera::ScalingMode, window::WindowResized}; use bevy_rapier2d::{pipeline::CollisionEvent::*, prelude::*}; +/// i can step the rapier simulation by adding to the rollback systems +/// the rapier system set. bevy_rapier provides 4 system sets. +/// bevy_ggrs can take a schedule and a type, so no RapierContext +/// in the schedule i can +/// deserialize RapierContext +/// run the game logic +/// run the rapier systems +/// serialize RapierContext +/// the only problem is the first RapierContext, but default should be fine + fn main() { App::new() .insert_resource(WindowDescriptor { @@ -53,7 +63,6 @@ fn camera_follow( fn spawn_camera(mut commands: Commands) { let mut camera = Camera2dBundle::default(); camera.projection.scaling_mode = ScalingMode::WindowSize; - camera.projection.scale = 1.0; camera.transform = Transform::from_xyz(0.0, 0.0, 100.0); commands.spawn_bundle(camera); } -- cgit v1.2.3-54-g00ecf