Rotate slowly

I’m trying to get an object to start out with a specified rotation:
[lua]local function checkAngle(obj1, obj2)
return math.ceil(math.atan2( (obj1.y - obj2.y), (obj1.x - obj2.x) ) * 180 / math.pi)
end
myHeroicHero.rotation = checkAngle(myHeroicHero, hisHouse)[/lua]
That works. But now what I’d like to do is make objects able to hit him and knock him off course. Easier done than said :slight_smile: When they hit him, I’d like him to perhaps spin out of the way or something. I can easily make him continue traveling back to hisHouse, (with an applyForce timer) but I’d like him to slowly turn around again until he’s facing it again. I can’t conceive how I’d do that, unless it be with transitions that cancelled each time he was collided with, or a repeating function that if he was off target, add to his rotation little by little. Does anyone have any ideas? [import]uid: 147322 topic_id: 29525 reply_id: 329525[/import]