mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Add a custom Body:setMass function.
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user