modules/world: add a way to simply set bounceFactor in the Actor2D

This commit is contained in:
Kazhnuz 2019-04-28 11:12:54 +02:00
parent 6c2b308580
commit 5777d9463b

View file

@ -75,6 +75,10 @@ function Actor2D:register()
self.world:registerActor(self) self.world:registerActor(self)
end end
function Actor2D:setBounceFactor(newBounceFactor)
self.bounceFactor = newBounceFactor or 0
end
-- INPUT FUNCTIONS -- INPUT FUNCTIONS
-- get input from the world object -- get input from the world object