diff options
Diffstat (limited to 'src/dynamics/solver/delta_vel.rs')
| -rw-r--r-- | src/dynamics/solver/delta_vel.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/dynamics/solver/delta_vel.rs b/src/dynamics/solver/delta_vel.rs new file mode 100644 index 0000000..c4a424b --- /dev/null +++ b/src/dynamics/solver/delta_vel.rs @@ -0,0 +1,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(), + } + } +} |
