Physics2D/RigidBody2D: Fix SetGeom attribute copy
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user