Rotating an object about a point (2D) using box2d

Posted by noob on Game Development See other posts from Game Development or by noob
Published on 2013-08-11T17:30:22Z Indexed on 2013/10/21 4:12 UTC
Read the original article Hit count: 315

Filed under:
|
|

i just started developing using box2d on flixel and i realise the pivot point of the rotation of an object in box2d is set to the center of an object.

i had read on forums and i found out that SetAsBox can change the pivot point of the object, however, i cannot seem to get it work to rotate about a point.

what i would like to achieve is to rotate an object about a point like earth revolving around the sun. any one can help me with it? really thanks a lot and sorry for the bad english

© Game Development or respective owner

Related posts about box2d

Related posts about flash