Sdk/Physics2D: Fix copy of PhysicsComponent2D
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user