Physics2D/RigidBody2D: Made SetGeom public

This commit is contained in:
Lynix
2016-11-10 17:18:44 +01:00
parent 7f445def13
commit 9772b43542
2 changed files with 39 additions and 17 deletions

View File

@@ -49,6 +49,7 @@ namespace Nz
bool IsSleeping() const;
void SetAngularVelocity(float angularVelocity);
void SetGeom(Collider2DRef geom);
void SetMass(float mass);
void SetMassCenter(const Vector2f& center);
void SetPosition(const Vector2f& position);
@@ -59,8 +60,8 @@ namespace Nz
RigidBody2D& operator=(RigidBody2D&& object);
private:
void Create(float mass = 0.f, float moment = 0.f);
void Destroy();
void SetGeom(Collider2DRef geom);
std::vector<cpShape*> m_shapes;
Collider2DRef m_geom;