Remove elasticity argument from bounce
This commit is contained in:
1 parent
7bab9c56f9
commit
465053d73b
2 files changed
+4
-6
No files matched your search
@@ -18,10 +18,9 @@ vec2 = {
|
||||
return vec2:new(self.x/mag, self.y/mag)
|
||||
end,
|
||||
|
||||
bounce = function(self, n, b)
|
||||
local b = b or 1
|
||||
bounce = function(self, n)
|
||||
local n = n:normal()
|
||||
return (n * -2 * self:dot(n) + self) * b
|
||||
return n * -2 * self:dot(n) + self
|
||||
end,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user