diff --git a/ChangeLog.md b/ChangeLog.md index 353910cb0..0665bcc5c 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -195,6 +195,7 @@ Nazara Engine: - GuillotineBinPack::Insert overload taking multiple rectangles no longer does a heap allocation - StackArray and StackVector now have a default constructor initializing them with no size/capacity - StackArray and StackVector are now movable +- Fixed RigidBody2D::Copy not copying kinematic/dynamic/static status Nazara Development Kit: - Added ImageWidget (#139) diff --git a/src/Nazara/Physics2D/RigidBody2D.cpp b/src/Nazara/Physics2D/RigidBody2D.cpp index e4c29b19a..e1e98759a 100644 --- a/src/Nazara/Physics2D/RigidBody2D.cpp +++ b/src/Nazara/Physics2D/RigidBody2D.cpp @@ -673,6 +673,8 @@ namespace Nz cpBodySetPosition(to, cpBodyGetPosition(from)); cpBodySetTorque(to, cpBodyGetTorque(from)); cpBodySetVelocity(to, cpBodyGetVelocity(from)); + + cpBodySetType(to, cpBodyGetType(from)); } void RigidBody2D::CopyShapeData(cpShape* from, cpShape* to)