Skip to content

Commit

Permalink
fixed wrong direction balance in intersect.balance_from_mass
Browse files Browse the repository at this point in the history
  • Loading branch information
1bardesign committed Nov 1, 2024
1 parent 4a5b2aa commit acc986e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intersect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit acc986e

Please sign in to comment.