From 6c0132b0ccbba9a94ee1c831233426445a4f4155 Mon Sep 17 00:00:00 2001 From: Dan Royer Date: Mon, 8 Nov 2021 09:09:19 -0800 Subject: [PATCH] fix for #10 --- Manifold.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Manifold.cpp b/Manifold.cpp index 9846189..63af9fb 100644 --- a/Manifold.cpp +++ b/Manifold.cpp @@ -30,8 +30,8 @@ void Manifold::Initialize( void ) e = std::min( A->restitution, B->restitution ); // Calculate static and dynamic friction - sf = std::sqrt( A->staticFriction * A->staticFriction ); - df = std::sqrt( A->dynamicFriction * A->dynamicFriction ); + sf = std::sqrt( A->staticFriction * B->staticFriction ); + df = std::sqrt( A->dynamicFriction * B->dynamicFriction ); for(uint32 i = 0; i < contact_count; ++i) {