Physics2D/RigidBody2D: Allows better control on inertia

This commit is contained in:
Jérôme Leclercq
2017-09-01 14:26:28 +02:00
parent c087003bda
commit 38bd348ed6
2 changed files with 15 additions and 9 deletions

View File

@@ -54,8 +54,8 @@ namespace Nz
bool IsSleeping() const;
void SetAngularVelocity(float angularVelocity);
void SetGeom(Collider2DRef geom);
void SetMass(float mass);
void SetGeom(Collider2DRef geom, bool recomputeMoment = true);
void SetMass(float mass, bool recomputeMoment = true);
void SetMassCenter(const Vector2f& center);
void SetMomentOfInertia(float moment);
void SetPosition(const Vector2f& position);