Files
rapier/src/dynamics/solver/delta_vel.rs
Crozet Sébastien 261ed1ebed Fix 2D compilation.
2021-01-06 12:53:26 +01:00

19 lines
394 B
Rust

use crate::math::{AngVector, Vector};
use na::{Scalar, SimdRealField};
#[derive(Copy, Clone, Debug)]
//#[repr(align(64))]
pub(crate) struct DeltaVel<N: Scalar + Copy> {
pub linear: Vector<N>,
pub angular: AngVector<N>,
}
impl<N: SimdRealField> DeltaVel<N> {
pub fn zero() -> Self {
Self {
linear: na::zero(),
angular: na::zero(),
}
}
}