tap Ball linear Impulse

I have a ball with gravity applied to it. When tapped the ball goes straight up, I want the ball to bounce in the opposite direction of its tapped coordinates.

function moveBall (event)
ball:applylinearImpulse ( 0, -.2, ball.x, ball.y)
The Resource documents do not give very much detail on using the applylinearImpulse event…
[import]uid: 38677 topic_id: 6696 reply_id: 306696[/import]

Hey Tren,

I’m new to Corona also, but I think you can try something like this.

[lua]-- event.x and event.y is where the player touches
function moveBall (event)
ball:applylinearImpulse ( 0, -.2, event.x, event.y)
end [import]uid: 12455 topic_id: 6696 reply_id: 23407[/import]

I know this is old, but has anyone figured this problem out? [import]uid: 75258 topic_id: 6696 reply_id: 107717[/import]