GetWorldPoint()

Hi,

When you use GetWordPoint in the context of a body, is the local point always the same regardless of the orientation of the body. i.e. is point(1,0) always the same point in the body (i.e. relative to the bodies own internal x,y co-ordinate system) regardless of its orientation. Or as the body moves around and rotates, does a local point such as (1,0) change its position on the body?

Code:
                b2Vec2 p = body_->GetWorldPoint(b2Vec2(0.0f, 0.0f));
      body_->ApplyForce(f, p);



I want to add a force to a body but I always want it to be just above its centre point regardless of its orientation. i.e. I want to apply a rolling force to an egg shaped object and so think I need to apply the force left or right, but always just above the centre point to create the necessary torque.

Regards

i
A local point is fixed in the frame of the body. It fits the definition of a local coordinate system.

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