mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-21 21:54:35 +00:00
fixed wrong direction balance in intersect.balance_from_mass
This commit is contained in:
parent
4a5b2aaa90
commit
acc986ed4b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user