Let's say we need a race track, and we need to get a random set of points that describe it.
Please refer to /examples/basic.rs
Lets create convex hull around random points
let mut rpath = RandomLoop::generate(12, vec3(100., 0., 100.)); RandomLoop::vary(&mut rpath, 50.);Smooth it
RandomLoop::smooth_out(&mut rpath, 120f32.to_radians(), 20.); let cr = CubicBSpline::new(rpath).to_curve_cyclic().unwrap();
let spline = cr.iter_positions(120).collect::<Vec<_>>();| bevy | bevy_random_loop |
|---|---|
| 0.18 | 0.1 |



