From acc986ed4b44b689e367358a5c78f9a352a585f3 Mon Sep 17 00:00:00 2001 From: Max Cahill Date: Fri, 1 Nov 2024 13:35:19 +1100 Subject: [PATCH] fixed wrong direction balance in intersect.balance_from_mass --- intersect.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intersect.lua b/intersect.lua index c2890bc..12bd7a8 100644 --- a/intersect.lua +++ b/intersect.lua @@ -533,7 +533,7 @@ function intersect.balance_from_mass(a_mass, b_mass) --get balance factor local total = a_mass + b_mass - return a_mass / total + return b_mass / total end --bounce a velocity off of a normal (modifying velocity)