[−][src]Function oxygengine_physics_2d::prelude::solver::helper::project_anchor_to_axis
pub fn project_anchor_to_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>,
axis1: &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 project anchor2
into the axis with direction axis1
and passing through the anchor1
.
All inputs mut be given in world-space.