The linear velocity for a point on the body is the velocity of the body center of mass plus the velocity at that point from the body spinning.
The point on the body must given in local coordinates. Use Body:getLinearVelocityFromWorldPoint to specify this with world coordinates.
x | number | The x position to measure velocity. |
y | number | The y position to measure velocity. |
vx | number | The x component of velocity at point (x,y). |
vy | number | The y component of velocity at point (x,y). |