aboutsummaryrefslogtreecommitdiff
path: root/plugins/gravity/src/lib.rs
blob: 4282256b94f68c9ad52b76821a499cad4e4287e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! 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,
        });
    }
}