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

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