modules/world: use the setBounceFactor function in initPhysics
This commit is contained in:
parent
187f0286df
commit
6aa7fd6399
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ function Actor2D:initPhysics(x, y, w, h, isSolid)
|
||||||
self.xfrc = 0
|
self.xfrc = 0
|
||||||
self.yfrc = 0
|
self.yfrc = 0
|
||||||
|
|
||||||
self.bounceFactor = 0
|
self:setBounceFactor()
|
||||||
self:initGravity()
|
self:initGravity()
|
||||||
|
|
||||||
self.isSolid = isSolid or false
|
self.isSolid = isSolid or false
|
||||||
|
|
Loading…
Reference in a new issue