Sdk/Physics2D: Fix copy of PhysicsComponent2D
This commit is contained in:
parent
8d8f44f4b9
commit
ca2425f310
|
|
@ -20,7 +20,8 @@ namespace Ndk
|
|||
*
|
||||
* \param physics PhysicsComponent2D to copy
|
||||
*/
|
||||
inline PhysicsComponent2D::PhysicsComponent2D(const PhysicsComponent2D& physics)
|
||||
inline PhysicsComponent2D::PhysicsComponent2D(const PhysicsComponent2D& physics) :
|
||||
m_nodeSynchronizationEnabled(physics.m_nodeSynchronizationEnabled)
|
||||
{
|
||||
CopyPhysicsState(*physics.GetRigidBody());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue