cocos2d/cocos2d-x — pull request #5493 by boyu0 (2014-02-28 08:05:22+00:00)
Title: closed #4150: fix physics position and rotation bug.

1. Fix the bug if a node has a parent, it's physics body position is incorrect.
2. Set anchor point to middle when invoke Node::setPhysicsBody
3. Add PhysicsBody set/getPosition/RotationOffset method.
4. Add PhysicsPositionRotationTest.