diff options
Diffstat (limited to 'src/dynamics/solver/delta_vel.rs')
| -rw-r--r-- | src/dynamics/solver/delta_vel.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dynamics/solver/delta_vel.rs b/src/dynamics/solver/delta_vel.rs index b50cb76..b457020 100644 --- a/src/dynamics/solver/delta_vel.rs +++ b/src/dynamics/solver/delta_vel.rs @@ -9,7 +9,7 @@ pub(crate) struct DeltaVel<N: Scalar + Copy> { pub angular: AngVector<N>, } -impl<N: SimdRealField> DeltaVel<N> { +impl<N: SimdRealField + Copy> DeltaVel<N> { pub fn zero() -> Self { Self { linear: na::zero(), @@ -18,7 +18,7 @@ impl<N: SimdRealField> DeltaVel<N> { } } -impl<N: SimdRealField> AddAssign for DeltaVel<N> { +impl<N: SimdRealField + Copy> AddAssign for DeltaVel<N> { fn add_assign(&mut self, rhs: Self) { self.linear += rhs.linear; self.angular += rhs.angular; |
