use crate::math::{AngVector, Vector}; use na::{Scalar, SimdRealField}; use std::ops::AddAssign; #[derive(Copy, Clone, Debug)] //#[repr(align(64))] pub(crate) struct DeltaVel { pub linear: Vector, pub angular: AngVector, } impl DeltaVel { pub fn zero() -> Self { Self { linear: na::zero(), angular: na::zero(), } } } impl AddAssign for DeltaVel { fn add_assign(&mut self, rhs: Self) { self.linear += rhs.linear; self.angular += rhs.angular; } }