Rotating an object in relation to another object?

I am new Corona, and I had a question about rotating objects. I have managed to get my object to rate when it is tapped on, but it rotates around the center point of that object. What I am trying to do might be very confusing, but I feel like someone on this forum will understand :slight_smile: Here’s a diagram rather than explaining everything:

http://piczasso.com/i/wm7r4.png

The square is an object, but other objects cannot interact with it, so I would presume I just dont make it a physics object. The second object is the rectangle in front of the square. This rectangle IS a physics object and other objects can interact with it. I want to make it so that when the square is tapped, both the square and rectangle rotate. But I dont want the rectangle to rotate in relation to its center point, I want it to move with the square so that it is always adjacent to the side of the square. If this doesn’t make any sense, I will happily draw another diagram.

Thanks !
Alex [import]uid: 7116 topic_id: 5604 reply_id: 305604[/import]

What you want to do is change the rectangle’s reference point to match that of the square:
http://developer.anscamobile.com/content/objectxreference
http://developer.anscamobile.com/content/objectyreference [import]uid: 12108 topic_id: 5604 reply_id: 19067[/import]

Thanks! that sounds like it will work :slight_smile: I will go try it out now [import]uid: 7116 topic_id: 5604 reply_id: 19069[/import]

I ended up playing with some numbers and doing what you said and it works perfectly. Thanks a bunch! [import]uid: 7116 topic_id: 5604 reply_id: 19078[/import]