concinnity-engine 0.18.65

Runtime engine for Concinnity: ECS schedule, graphics, spawn, streaming
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// What this crate lends `concinnity_core::physics::PhysicsSystem`: the one
// thing the driver needs that only a host has.
//
//   fanout.rs   the job pool a step's independent work is offered to
//
// The simulation, the driver around it, and everything a tick does to the
// world are in concinnity-core; the gate in `ecs::schedule` builds the system
// with the pool attached.

pub(crate) mod fanout;

use concinnity_core::physics::PhysicsSystem;

// The physics system as this host runs it: steps fanned out across the job
// pool the frame's schedule names.
pub(crate) fn build(config: concinnity_core::components::PhysicsConfig) -> PhysicsSystem {
    PhysicsSystem::new(config).with_fanout(Box::new(fanout::PoolFanout))
}