aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/solver/delta_vel.rs
blob: c4a424b0e390aeda850266b77b9cc5d1790d6ae7 (plain)
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(),
        }
    }
}