Rotate object towards center

Hello Corona Community!

I’m stumped with a game logic question. I am building an app that is 320x480 (320width by 480height) and I have one object in the center of screen at 160x240.

Now, I have three objects, which are arrows, at

  1. 0,45
  2. 0, 240
  3. 0,360

And I have all three transition to the center with the following code:

move = transition.to(object, {time=1000, x=\_W/2, y=\_H/2})  

My question is, how do I get the arrows to rotate to face the center?

I know the code to rotate is object.rotation = value and I hard coded the value for each one, the first one had to be rotated at 270, second at 30 and the third at 220. But I would like to add more arrows without having to hard code each one. [import]uid: 14218 topic_id: 10802 reply_id: 310802[/import]