bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Reintroduce 0.14.2 behavior for splines inner elements

Open ThomasCartier opened this issue 1 year ago • 0 comments

Bevy 0.14.2 -> 0.15

In this version,

let mut catmull = CubicCardinalSpline::new_catmull_rom(points.clone()).to_curve();

the CubicCardinalSpline won't let me access the undelrying segments, which is needed here because I modified the poitns after the initial calculation. it was possible in 0.14.2 for, e.g:

catmull.segments.iter_mut().map(..){..}

Now, we only have the option to iterate over segments or push a new segment but not to modify existing points.

May you reenable this behavior please ?

catmull.segments.0 or catmull.segments.get_mut() ?

Thanks

ThomasCartier avatar Dec 03 '24 07:12 ThomasCartier