Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

In Farseer 3.3.1 for XNA, how do I change the origin of a Body? For example, when I create a Circle Body, instead of it rotating around its center, I want it to rotate around another specified point.

share|improve this question

2 Answers

up vote 4 down vote accepted

I guess the revoulte joint is what you want. You can use it to pin the circle at a given position and the circle will rotate around that position.

share|improve this answer

The centroid is necessary for physics calculations. In other words that is not the origin you are trying to move but the center of mass. Unless I'm mistaken you're going to have to do a bit of trig or get fancy with matrices.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.