Physics2D/RigidBody2D: Fix velocity func not being copied

This commit is contained in:
Jérôme Leclercq
2020-09-05 12:56:35 +02:00
parent 966c0b32aa
commit 1e29790831

View File

@@ -695,6 +695,8 @@ namespace Nz
cpBodySetVelocity(to, cpBodyGetVelocity(from)); cpBodySetVelocity(to, cpBodyGetVelocity(from));
cpBodySetType(to, cpBodyGetType(from)); cpBodySetType(to, cpBodyGetType(from));
to->velocity_func = from->velocity_func;
} }
void RigidBody2D::CopyShapeData(cpShape* from, cpShape* to) void RigidBody2D::CopyShapeData(cpShape* from, cpShape* to)