Physics2D/RigidBody2D: Fix useless copy
This commit is contained in:
parent
e62afabd71
commit
b8e25502f5
|
|
@ -30,7 +30,7 @@ namespace Nz
|
|||
NazaraAssert(m_world, "Invalid world");
|
||||
|
||||
m_handle = Create(mass);
|
||||
SetGeom(geom);
|
||||
SetGeom(std::move(geom));
|
||||
}
|
||||
|
||||
RigidBody2D::RigidBody2D(const RigidBody2D& object) :
|
||||
|
|
|
|||
Loading…
Reference in New Issue