For every objects, program perform it:
Code: Select all
local sx, sy = body:getLinearVelocity()
sx = sx * self.worldAirResistance*dt
body:setLinearVelocity( sx, sy )
self.worldAirResistance = 0.9
But (0.9 * dt) is a very small value, it make that Air Resistance is too strong.
I need it for my platform game, for player object. Any ideas?