modules/world: add a way to simply set bounceFactor in the Actor2D
This commit is contained in:
parent
6c2b308580
commit
5777d9463b
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue