0

Sorry guy about last question.

My question: How to determine point rotate circle around 1 object in Box2d - cocos2d-x ver3.* enter image description here

Daniel Le
  • 171
  • 1
  • 4
  • 8
  • please elaborate on what exactly you need to know, the question is vague/unclear – CodeSmile Nov 14 '14 at 07:44
  • @LearnCocos2D: are you clear my question? :) – Daniel Le Nov 14 '14 at 07:55
  • I still don't understand. Do you want to rotate a point around the position of a given object, is that it? So basically you want to know how to get the position on the circumference of a circle with a given radius and angle? If that's it, there's plenty of examples here, for instance: http://stackoverflow.com/questions/11335742/find-a-point-on-a-circle-circumference-based-on-degrees – CodeSmile Nov 14 '14 at 09:49
  • @LearnCocos2D: similar but point and object are dynamically.I want to know about rotate full circle around 1 dynamic object – Daniel Le Nov 14 '14 at 11:06
  • it's still the same code, you calculate the point on the circle circumference given radius and angle, then you offset the calculated point by the object position – CodeSmile Nov 14 '14 at 11:10
  • Thank @LearnCocos2D, could you give example code on Box2d and cocos2d-x? I'm sorry, i'm newbie box2d :) – Daniel Le Nov 14 '14 at 11:20

0 Answers0