[][src]Function specs_physics::physics_dispatcher

pub fn physics_dispatcher<'a, 'b, N, P>() -> Dispatcher<'a, 'b> where
    N: RealField,
    P: Position<N>, 

Convenience function for configuring and building a Dispatcher with all required physics related Systems.

Examples

use specs_physics::bodies::util::SimplePosition;
let dispatcher = specs_physics::physics_dispatcher::<f32, SimplePosition<f32>>();