Sdk/Physics2D: Fix copy of PhysicsComponent2D

This commit is contained in:
Lynix 2020-05-24 16:01:26 +02:00
parent 8d8f44f4b9
commit ca2425f310
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ namespace Ndk
* *
* \param physics PhysicsComponent2D to copy * \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()); CopyPhysicsState(*physics.GetRigidBody());
} }