Fix regression causing invalid contacts to be solved.
This commit is contained in:
@@ -194,7 +194,7 @@ impl WVelocityGroundConstraint {
|
||||
};
|
||||
|
||||
VelocityGroundConstraintElement::warmstart_group(
|
||||
&self.elements,
|
||||
&self.elements[..self.num_contacts as usize],
|
||||
&self.dir1,
|
||||
#[cfg(feature = "dim3")]
|
||||
&self.tangent1,
|
||||
@@ -219,7 +219,7 @@ impl WVelocityGroundConstraint {
|
||||
};
|
||||
|
||||
VelocityGroundConstraintElement::solve_group(
|
||||
&mut self.elements,
|
||||
&mut self.elements[..self.num_contacts as usize],
|
||||
&self.dir1,
|
||||
#[cfg(feature = "dim3")]
|
||||
&self.tangent1,
|
||||
|
||||
Reference in New Issue
Block a user