body position

Hi all..

I have a small problem and i need help..

i have a b2_kinematicBody and his position is screen center , and his offset is for example b2Vec2(-2.0,3.0)
and this body rotate by 80 degree
i need to know his position after rotation

i.e i know that his real position still in screen center but i need to know where are he (his offset)
how can i know??
body->GetWorldPoint( b2Vec2(-2.0, 3.0) )

------------------
Please also take a look at the other similar functions in b2Body:
b2Vec2 GetWorldPoint(const b2Vec2& localPoint) const;
b2Vec2 GetWorldVector(const b2Vec2& localVector) const;
b2Vec2 GetLocalPoint(const b2Vec2& worldPoint) const;
b2Vec2 GetLocalVector(const b2Vec2& worldVector) const;
b2Vec2 GetLinearVelocityFromWorldPoint(const b2Vec2& worldPoint) const;
b2Vec2 GetLinearVelocityFromLocalPoint(const b2Vec2& localPoint) const;
@irresistible force thanks a lot

But really i took a look at these methods before from the flowing URL
http://personal.boristhebrave.com/project/box2dwith/docs/com/boristhebrave/Box2DWith/b2XML.html

the problem that i can not understand what the mean of WorldPoint ,WorldVector ...etc, To know this is the first time i work with box2d and with cocos2d
so if you know any site that can supply me with full description about these methods 🙂

Regards
Local coordinates are from the point of view of each body, and world coordinates are in the real global world space.

Let's suppose you are standing at the point (0, 0) in the world. If I tell you to look up, you will look up at the sky, and we could call the direction you are looking a vector (0, 1). This is (0, 1) in world space because in the real world the sky is upwards. It is also (0, 1) in your local space because you are looking towards the top of your head. So in this situation, the world vector and your local vector are the same.

Now suppose I turn you upside down, and tell you to keep looking up. From your point of view you are still looking towards the top of your head, so your local vector for this direction has not changed, it's still (0, 1) from your point of view. But because your whole body is upside down, in the real world you are now looking at the ground so the world vector for this direction is (0, -1).

For positions it's much the same. Let's say when you are standing at (0, 0) your head is 1.6 meters above the ground because that's how tall you are. If your feet are the body origin for your local space, the position of your head in world space and in body space is the same, (0, 1.6). Now if you walk 3 meters to the right, once again your head's position in body space has not changed, it's still (0, 1.6). But in world space your head is now at (3, 1.6).

Original thread: https://box2d.org/forum/viewtopic.php?t=7213