문제

In Box2d, where is the center of rotation when we achieve the angle by using GetAngle method? is it the center of mass, the center of AABB or somewhere else?

Thanks

도움이 되었습니까?

해결책

There is no center of rotation, there is only the angle. As an analogy, if you park your car facing northwest, what is the center of rotation of the car?

The only time there is something that might be called a center of rotation is when you use ApplyTorque to turn a body. In that case the torque will be applied about the center of mass.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top