What is the logic to move a paddle left and right automatically on the iPhone?
<p>I am just developing a simple iPhone application where a paddle moves left and right automatically.</p>

<p>My logic:</p>

<pre><code>// First to determine the CGPoint of paddle
CGPoint detectXY = CGPointMake(paddle.center.x ,paddle.center.y);

// Second to determine the velocity of paddle
CGPoint paddleVelocity = CGPointMake(1,1);

// Adding velocity with X,Y cordinate
paddle.center = CGPointMake(paddle.center.x + paddleVelocity.x, 
                            paddle.center.y + paddleVelocity.y);
</code></pre>

<p>But the paddle is not moving...</p>

<p>Any ideas?</p>
