Function nphysics3d::solver::helper::cancel_relative_linear_velocity_wrt_axis [−][src]
pub fn cancel_relative_linear_velocity_wrt_axis<N: RealField + Copy, B: ?Sized + Body<N>, H: BodyHandle, Id>(
body1: &B,
part1: &dyn BodyPart<N>,
handle1: BodyPartHandle<H>,
body2: &B,
part2: &dyn BodyPart<N>,
handle2: BodyPartHandle<H>,
assembly_id1: usize,
assembly_id2: usize,
anchor1: &Point<N>,
anchor2: &Point<N>,
axis: &Unit<Vector<N>>,
ext_vels: &DVector<N>,
impulse: N,
impulse_id: Id,
ground_j_id: &mut usize,
j_id: &mut usize,
jacobians: &mut [N],
constraints: &mut LinearConstraints<N, Id>
)
Expand description
Generates velocity constraints to cancel the relative linear velocity of two body parts wrt the given axis.
All inputs mut be given in world-space.