ABC_Game_Engine 0.1.2

A simple, fast, and flexible Game Engine written in Rust, with simplicity in mind.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::Scene;

pub mod physics_system;
pub use rapier2d;
use ABC_ECS::World;

pub fn add_default_physics_systems(world: &mut World) {
    // remove all physics systems to prevent duplicates
    world.remove_all_systems_of_type::<physics_system::RapierPhysicsSystem>();

    let physics_system =
        physics_system::RapierPhysicsSystem::new(&mut world.entities_and_components);
    world.add_system(physics_system);
}