Physics2D/RigidBody2D: Fix SetGeom attribute copy

This commit is contained in:
Lynix
2017-11-28 23:20:45 +01:00
parent 377dd992b9
commit 72bcb1fda7
2 changed files with 27 additions and 19 deletions

View File

@@ -74,10 +74,11 @@ namespace Nz
static constexpr std::size_t InvalidShapeIndex = std::numeric_limits<std::size_t>::max();
private:
void CopyBodyData(cpBody* body);
cpBody* Create(float mass = 1.f, float moment = 1.f);
void Destroy();
static void CopyBodyData(cpBody* from, cpBody* to);
std::vector<cpShape*> m_shapes;
Collider2DRef m_geom;
cpBody* m_handle;