use bevy::prelude::*; use forky_play::spline::*; use forky_play::*; fn main() { let mut app = App::new(); app.__() // .add_systems(Update,utility::create_exit_after_system(10.)) .add_plugins(plugins::ForkyFullPlugin::default()) .add_plugins(spline::SplinePlugin) .add_systems(Startup, setup) .run(); } fn setup( mut commands: Commands, mut graph_lookup: ResMut, mut materials: ResMut>, ) { let material = materials.add(materials::UvMaterial::default()); let graph = graph_lookup.create_graph(material); let spline = Spline::Cubic(CubicSpline::new( Vec3::new(-1.0, 0., 1.), Vec3::new(-1., 0., 0.), Vec3::new(1., 0., 0.), Vec3::new(1., 0., 1.), )); graph.create_edge_from_spline(&mut commands, spline); }