Skip to content

Commit

Permalink
Fix torque for multiple collisions
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Jan 19, 2022
1 parent 60d013a commit bad001b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/buoyancy/Buoyancy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ std::pair<math::Vector3d, math::Vector3d> BuoyancyPrivate::ResolveForces(
// Offset between the link origin and the force application point
auto offset = _linkInWorld.Pos() - pointInWorld.Pos();

torque += force.Cross(offset);
torque += b.force.Cross(offset);
}

return {force, torque};
Expand Down

0 comments on commit bad001b

Please sign in to comment.