From 5deac2ff33e84123aee0c8f568b888520ac818f9 Mon Sep 17 00:00:00 2001 From: BD103 <59022059+BD103@users.noreply.github.com> Date: Fri, 12 Jan 2024 21:16:11 -0500 Subject: [PATCH 1/2] BREAKING(math): remove default impl for cubic curve --- crates/bevy_math/src/cubic_splines.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_math/src/cubic_splines.rs b/crates/bevy_math/src/cubic_splines.rs index 9f4fc365f7799..b2edff78f581c 100644 --- a/crates/bevy_math/src/cubic_splines.rs +++ b/crates/bevy_math/src/cubic_splines.rs @@ -431,7 +431,7 @@ impl CubicSegment { } /// A collection of [`CubicSegment`]s chained into a curve. -#[derive(Clone, Debug, Default, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub struct CubicCurve { segments: Vec>, } From 5efb8868621a30ca772269d28783489598ec707f Mon Sep 17 00:00:00 2001 From: BD103 <59022059+BD103@users.noreply.github.com> Date: Sat, 13 Jan 2024 16:47:19 -0500 Subject: [PATCH 2/2] chore(math): document how to create a cubic curve --- crates/bevy_math/src/cubic_splines.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/bevy_math/src/cubic_splines.rs b/crates/bevy_math/src/cubic_splines.rs index b2edff78f581c..249bd517c1568 100644 --- a/crates/bevy_math/src/cubic_splines.rs +++ b/crates/bevy_math/src/cubic_splines.rs @@ -431,6 +431,9 @@ impl CubicSegment { } /// A collection of [`CubicSegment`]s chained into a curve. +/// +/// Use any struct that implements the [`CubicGenerator`] trait to create a new curve, such as +/// [`CubicBezier`]. #[derive(Clone, Debug, PartialEq)] pub struct CubicCurve { segments: Vec>,