Skip to content

Commit

Permalink
docs(penetration_constraint): change outdated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenatlas committed Jul 31, 2024
1 parent 3cd0d1f commit 65afa22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/src/physics/solver/penetration_constraint/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ void cubos::engine::penetrationConstraintPlugin(Cubos& cubos)
float kFriction = mass1.inverseMass + mass2.inverseMass;
float frictionMass = kFriction > 0.0F ? 1.0F / kFriction : 0.0F;

// determine friction (set to predefined value for now)
// determine friction
float friction = mixValues(material1.friction, material2.friction,
getMixProperty(material1.frictionMix, material2.frictionMix));

Check warning on line 294 in engine/src/physics/solver/penetration_constraint/plugin.cpp

View check run for this annotation

Codecov / codecov/patch

engine/src/physics/solver/penetration_constraint/plugin.cpp#L293-L294

Added lines #L293 - L294 were not covered by tests

// determine restitution (set to predefined value for now)
// determine restitution
float restitution = mixValues(material1.bounciness, material2.bounciness,
getMixProperty(material1.bouncinessMix, material2.bouncinessMix));

Check warning on line 298 in engine/src/physics/solver/penetration_constraint/plugin.cpp

View check run for this annotation

Codecov / codecov/patch

engine/src/physics/solver/penetration_constraint/plugin.cpp#L297-L298

Added lines #L297 - L298 were not covered by tests
glm::vec3 vr = velocity2.vec - velocity1.vec;
Expand Down

0 comments on commit 65afa22

Please sign in to comment.