1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use crate::math::{AngVector, Vector}; use na::{Scalar, SimdRealField}; #[derive(Copy, Clone, Debug)] //#[repr(align(64))] pub(crate) struct DeltaVel<N: Scalar> { pub linear: Vector<N>, pub angular: AngVector<N>, } impl<N: SimdRealField> DeltaVel<N> { pub fn zero() -> Self { Self { linear: na::zero(), angular: na::zero(), } } }