Hockey table sides

I am creating a hockey game and using a hockey game created with corona as an example .  

I am having some problems with the paddles and the walls and the center . 

First, I think the walls have some kind of gravity that is resisting the paddle because when I try to put the paddle towards the walls the paddle stops about half way . I tried increasing the shapeWidth = rightPaddle.width but when I get to about -950, the paddle just goes straight through the wall . 

Second, when I put the paddles against the wall and the middle left, the paddle turns into an oval shape . 

Third, down the middle I want the whole thing to have an invisible wall so that only the puck passes through and not the paddles . 

Please help .  Thanks 

-- Left paddle wall leftPaddle = display.newImageRect( "leftRightWall.png", 45, 1024 ) leftPaddle.x = topLeft.x + leftPaddle.width / 5 leftPaddle.y = topLeft.y + leftPaddle.height / 5 shapeWidth = leftPaddle.width - 20 -- The actual physics body has to have a smaller width in order to account for the image's shadow paddleWallPhysicsProp.shape = {-shapeWidth / 2, -leftPaddle.height / 2, shapeWidth / 2, -leftPaddle.height / 2, shapeWidth / 2, leftPaddle.height / 2, -shapeWidth / 2, leftPaddle.height / 2 } physics.addBody( leftPaddle,"static", paddleWallPhysicsProp) paddleWallPhysicsProp.shape = nil -- Right paddle wall rightPaddle = display.newImageRect( "leftRightWall.png", 45, 1024 ) rightPaddle.x = bottomRight.x - rightPaddle.width / 5 rightPaddle.y = topLeft.y + rightPaddle.height / 5 rightPaddle.rotation = 180 -- Flip it 180 degrees so the shadow is in the inside of the table shapeWidth = rightPaddle.width - 20 -- The actual physics body has to have a smaller width in order to account for the image's shadow paddleWallPhysicsProp.shape = {-shapeWidth / 2, -rightPaddle.height / 2, shapeWidth / 2, -rightPaddle.height / 2, shapeWidth / 2, rightPaddle.height / 2, -shapeWidth / 2, rightPaddle.height / 2 } physics.addBody( rightPaddle,"static", paddleWallPhysicsProp) paddleWallPhysicsProp.shape = nil p1Paddle = display.newImageRect( "paddle.png", 165, 165) p1Paddle.x = p1PaddleInitialCoords.x p1Paddle.y = p1PaddleInitialCoords.y p1Paddle.name = "paddle" p1Paddle:scale( 0.55, 0.5 ) physics.addBody(p1Paddle, "dynamic", paddlePhysicsProp) p1Paddle.angularDamping = paddleDamping.angular p1Paddle.linearDamping = paddleDamping.linear p1Paddle:addEventListener( "touch", onPaddleTouch ) end function onPaddleTouch(event) gameUI.dragBody( event, paddleDragProp) end 

Going to need complete code. That code doesn’t run.

Try reducing the code to avoid unrelated items, then add them back in gradually.

Going to need complete code. That code doesn’t run.

Try reducing the code to avoid unrelated items, then add them back in gradually.