Fix warnings in the WASM build.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user