measure an objects angle, and increase velocity in that direction.

Hi

I have a player character which is a dynamic physics object. the player falls onto a number of rectangular objects arrange to form a curve. I have buttons set up to increase the players velocity, currently these work simply by increasing velocity on the x axis.

What I need to do is measure the angle of the player each frame, and if the buttons are pressed, increase the players velocity along the angle of rotation.

To further clarify, the player falls and hits the objects, rotating smoothly to follow the contour of the curve. when he’s at 45 degrees, I push the button. How do I tell corona to fire him at 45 degrees?

I’ve searched the forums, but can’t seem to find anything to help, unless it’s just gone way over my head.

Thanks in advance. [import]uid: 67933 topic_id: 14523 reply_id: 314523[/import]