fixed wrong direction balance in intersect.balance_from_mass

This commit is contained in:
Max Cahill 2024-11-01 13:35:19 +11:00
parent 4a5b2aaa90
commit acc986ed4b

View File

@ -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)