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

pub fn align_axis<N: RealField>(
    params: &IntegrationParameters<N>,
    body1: &dyn Body<N>,
    part1: &dyn BodyPart<N>,
    body2: &dyn Body<N>,
    part2: &dyn BodyPart<N>,
    anchor1: &Point<N>,
    anchor2: &Point<N>,
    axis1: &Unit<Vector<N>>,
    axis2: &Unit<Vector<N>>,
    jacobians: &mut [N]
) -> Option<GenericNonlinearConstraint<N>>

Generate position constraints to moved the body parts such that the given axis will become aligned.

All inputs mut be given in world-space.