//! CH Modules - Gravity //! //! CH Gravity provides the basic in-game representation of gravity use bevy::{app::Plugin, math::Vec3}; use ch_macro_rules::import; import!(gravity); /// Cigarette Hacker gravity plugin pub struct CHGravityPlugin; impl Plugin for CHGravityPlugin { fn build(&self, app: &mut bevy::app::App) { app.insert_resource(Gravity { gravity: Vec3::new(0., 1., 0.) * -9.8, }); } }