diff options
| author | Sébastien Crozet <developer@crozet.re> | 2021-08-08 18:39:04 +0200 |
|---|---|---|
| committer | Sébastien Crozet <sebastien@crozet.re> | 2021-08-08 19:19:16 +0200 |
| commit | 57aec69c1e4fef251825011d9bcf7c32ccb177f7 (patch) | |
| tree | df85a22100e5a5a6a4878f98b1394306bddf05e5 /src/dynamics/solver/delta_vel.rs | |
| parent | 13aebc424233278d6984fceb2c776046c13f5259 (diff) | |
| download | rapier-57aec69c1e4fef251825011d9bcf7c32ccb177f7.tar.gz rapier-57aec69c1e4fef251825011d9bcf7c32ccb177f7.tar.bz2 rapier-57aec69c1e4fef251825011d9bcf7c32ccb177f7.zip | |
Update to nalgebra 0.29
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; |
