Physics2D/RigidBody2D: Fix body type not being copied

This commit is contained in:
Lynix 2019-10-15 09:34:55 +02:00
parent 8004c84663
commit 62023c6af7
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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)