How to make linearDamping / friction work with setGravity( 0, 0 )

I’m quite new to Corona and I try to develop a icehockey-like game (view from top). Thus, I don’t need gravity. If I want to push the puck - wo can I simulate the friction of the ice in this mode?

I use linearDamping but the puck won’t reduce it’s speed over time. What am I doing wrong?

local physics = require "physics" physics.start() physics.setGravity( 0, 0 ) local backGroup = display.newGroup(); local stoneGroup = display.newGroup(); local ground = display.newImageRect(backGroup, "assets/images/background-ice.png", 723, 1400 ) ground.x = display.contentCenterX ground.y = display.contentCenterY local activeStone = display.newImageRect( stoneGroup, "assets/images/puck.png", 150, 150 ) activeStone.x = display.contentCenterX activeStone.y = display.contentHeight activeStone.linearDamping = 100 physics.addBody( activeStone, "dynamic", { radius = 150, bounce = 0 } ) local function pushPuck () activeStone:applyForce( 0, - 100, activeStone.x, activeStone.y) end activeStone:addEventListener( "tap", pushPuck )

Please do not ask the same question in two separate places.  

This is a violation of Forums guidelines.

Question already answered here: 

https://forums.coronalabs.com/topic/72623-how-to-add-friction-with-setgravity-0-0-pool-table-icehockey-game/#entry381342

Sorry, I couldnt see my question after I did submit it so I thought I have to ask it again.

Cool. No prob.

My bad. I should have deleted the duplicate post when I was approving them.

Rob

Please do not ask the same question in two separate places.  

This is a violation of Forums guidelines.

Question already answered here: 

https://forums.coronalabs.com/topic/72623-how-to-add-friction-with-setgravity-0-0-pool-table-icehockey-game/#entry381342

Sorry, I couldnt see my question after I did submit it so I thought I have to ask it again.

Cool. No prob.

My bad. I should have deleted the duplicate post when I was approving them.

Rob