[][src]Function oxygengine_physics_2d::prelude::solver::helper::cancel_relative_translation_wrt_axis

pub fn cancel_relative_translation_wrt_axis<N, B, H>(
    parameters: &IntegrationParameters<N>,
    body1: &B,
    part1: &(dyn BodyPart<N> + 'static),
    handle1: BodyPartHandle<H>,
    body2: &B,
    part2: &(dyn BodyPart<N> + 'static),
    handle2: BodyPartHandle<H>,
    anchor1: &Point<N, U2>,
    anchor2: &Point<N, U2>,
    axis: &Unit<Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>>,
    jacobians: &mut [N]
) -> Option<GenericNonlinearConstraint<N, H>> where
    B: Body<N> + ?Sized,
    H: BodyHandle,
    N: RealField

Generate position constraints to cancel the relative translation of two bodies wrt the given axis.

All inputs mut be given in world-space.