modules/world: use the setBounceFactor function in initPhysics

This commit is contained in:
Kazhnuz 2019-05-05 21:18:54 +02:00
parent 187f0286df
commit 6aa7fd6399

View file

@ -47,7 +47,7 @@ function Actor2D:initPhysics(x, y, w, h, isSolid)
self.xfrc = 0
self.yfrc = 0
self.bounceFactor = 0
self:setBounceFactor()
self:initGravity()
self.isSolid = isSolid or false