~starkingdoms/starkingdoms

ref: fb6dbf2ce9a068aef5023a1c179e523365a79d1f starkingdoms/crates/unified/src/server/gravity.rs -rw-r--r-- 235 bytes
fb6dbf2c — core chore: remove outdated readme info (round two) 25 days ago
                                                                                
1
2
3
4
5
6
7
use crate::prelude::*;
use crate::server::system_sets::WorldUpdateSet;
use crate::shared::gravity::update_gravity;

pub fn newtonian_gravity_plugin(app: &mut App) {
    app.add_systems(Update, update_gravity.in_set(WorldUpdateSet));
}