pub fn restrict_relative_linear_velocity_to_axis<N, B, H>(
    body1: &B,
    part1: &(dyn BodyPart<N> + 'static),
    handle1: BodyPartHandle<H>,
    body2: &B,
    part2: &(dyn BodyPart<N> + 'static),
    handle2: BodyPartHandle<H>,
    assembly_id1: usize,
    assembly_id2: usize,
    anchor1: &OPoint<N, Const<2>>,
    anchor2: &OPoint<N, Const<2>>,
    axis1: &Unit<Matrix<N, Const<nalgebra::::base::dimension::U2::{constant#0}>, Const<1>, ArrayStorage<N, 2, 1>>>,
    ext_vels: &Matrix<N, Dynamic, Const<1>, VecStorage<N, Dynamic, Const<1>>>,
    impulses: &[N],
    impulse_id: usize,
    ground_j_id: &mut usize,
    j_id: &mut usize,
    jacobians: &mut [N],
    constraints: &mut LinearConstraints<N, usize>
)where
    N: RealField + Copy,
    B: Body<N> + ?Sized,
    H: BodyHandle,
Expand description

Generate velocity constraints to cancel the relative linear velocity of two bodies along all axis except the one provided.

All inputs mut be given in world-space.