Ball rotation

Hi
I am creating a game and i have a ball that i need a realistic rotation of the ball, like, put one ball on the ground and push it to front, the ball will rotating and creating his effect.
How i can have it with corona?
Need a little help
Thanks [import]uid: 26056 topic_id: 19857 reply_id: 319857[/import]

try this api:

object:setAngularVelocity(0,0,object.x,object.y)

[import]uid: 16142 topic_id: 19857 reply_id: 77062[/import]

Use physics and set the friction, density on the ball and other objects that the ball is interacting with. Then you will get a realistic feature that you don’t have to care about :slight_smile:

Joakim [import]uid: 81188 topic_id: 19857 reply_id: 77064[/import]

Thanks people, the second answer is the solution :slight_smile: [import]uid: 26056 topic_id: 19857 reply_id: 77067[/import]