Can we have Box2D get center of mass please?

It would be really nice if we can get the x and y for the center of mass of an physic body.

Section 6.4 - http://box2d.org/manual.pdf

const b2Vec2& GetWorldCenter() const; 

const b2Vec2& GetLocalCenter() const;

I’ve also posted a feature request:

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/6073696-box2d-get-center-of-mass

Thank you guys!

Good suggestion! Look for object:getMassWorldCenter() and object:getMassLocalCenter() in tomorrow’s daily build.

Awesome! Thank you for your fast response! Well, you just got 2 more PRO subscribers! :slight_smile:

Good suggestion! Look for object:getMassWorldCenter() and object:getMassLocalCenter() in tomorrow’s daily build.

Awesome! Thank you for your fast response! Well, you just got 2 more PRO subscribers! :slight_smile: