Fix warnings in the WASM build.

This commit is contained in:
Crozet Sébastien
2021-02-23 16:47:48 +01:00
parent a60c6e5fdd
commit 3cc2738e5f
2 changed files with 4 additions and 4 deletions

View File

@@ -152,7 +152,7 @@ impl VelocityConstraint {
let force_dir1 = -manifold.data.normal; let force_dir1 = -manifold.data.normal;
let warmstart_coeff = manifold.data.warmstart_multiplier * params.warmstart_coeff; let warmstart_coeff = manifold.data.warmstart_multiplier * params.warmstart_coeff;
for (l, manifold_points) in manifold for (_l, manifold_points) in manifold
.data .data
.solver_contacts .solver_contacts
.chunks(MAX_MANIFOLD_POINTS) .chunks(MAX_MANIFOLD_POINTS)
@@ -295,7 +295,7 @@ impl VelocityConstraint {
if push { if push {
out_constraints.push(AnyVelocityConstraint::Nongrouped(constraint)); out_constraints.push(AnyVelocityConstraint::Nongrouped(constraint));
} else { } else {
out_constraints[manifold.data.constraint_index + l] = out_constraints[manifold.data.constraint_index + _l] =
AnyVelocityConstraint::Nongrouped(constraint); AnyVelocityConstraint::Nongrouped(constraint);
} }
} }

View File

@@ -78,7 +78,7 @@ impl VelocityGroundConstraint {
let mj_lambda2 = rb2.active_set_offset; let mj_lambda2 = rb2.active_set_offset;
let warmstart_coeff = manifold.data.warmstart_multiplier * params.warmstart_coeff; let warmstart_coeff = manifold.data.warmstart_multiplier * params.warmstart_coeff;
for (l, manifold_points) in manifold for (_l, manifold_points) in manifold
.data .data
.solver_contacts .solver_contacts
.chunks(MAX_MANIFOLD_POINTS) .chunks(MAX_MANIFOLD_POINTS)
@@ -202,7 +202,7 @@ impl VelocityGroundConstraint {
if push { if push {
out_constraints.push(AnyVelocityConstraint::NongroupedGround(constraint)); out_constraints.push(AnyVelocityConstraint::NongroupedGround(constraint));
} else { } else {
out_constraints[manifold.data.constraint_index + l] = out_constraints[manifold.data.constraint_index + _l] =
AnyVelocityConstraint::NongroupedGround(constraint); AnyVelocityConstraint::NongroupedGround(constraint);
} }
} }