Add a custom Body:setMass function.

This commit is contained in:
Linus Sjögren
2012-01-10 04:14:17 +01:00
parent be55579a22
commit afd0ef1d9e
4 changed files with 24 additions and 0 deletions
+6
View File
@@ -242,6 +242,12 @@ namespace box2d
**/
void setMassData(float x, float y, float m, float i);
/**
* Sets just the mass. This is provided as a LOVE bonus. Lovely!
* @param m The mass.
**/
void setMass(float m);
/**
* Sets the inertia while keeping the other properties
* (mass and local center).