[][src]Function nphysics3d::solver::helper::restrict_relative_linear_velocity_to_axis

pub fn restrict_relative_linear_velocity_to_axis<N: RealField>(
    body1: &dyn Body<N>,
    part1: &dyn BodyPart<N>,
    body2: &dyn Body<N>,
    part2: &dyn BodyPart<N>,
    assembly_id1: usize,
    assembly_id2: usize,
    anchor1: &Point<N>,
    anchor2: &Point<N>,
    axis1: &Unit<Vector<N>>,
    ext_vels: &DVector<N>,
    impulses: &[N],
    impulse_id: usize,
    ground_j_id: &mut usize,
    j_id: &mut usize,
    jacobians: &mut [N],
    constraints: &mut ConstraintSet<N>
)

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.