[−][src]Function nphysics2d::solver::helper::cancel_relative_translation
pub fn cancel_relative_translation<N: Real>(
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>,
jacobians: &mut [N]
) -> Option<GenericNonlinearConstraint<N>>
Generate position constraints to cancel the relative translation of two bodies.
All inputs mut be given in world-space.