Physics2D/RigidBody2D: Fix velocity func not being copied
This commit is contained in:
@@ -695,6 +695,8 @@ namespace Nz
|
||||
cpBodySetVelocity(to, cpBodyGetVelocity(from));
|
||||
|
||||
cpBodySetType(to, cpBodyGetType(from));
|
||||
|
||||
to->velocity_func = from->velocity_func;
|
||||
}
|
||||
|
||||
void RigidBody2D::CopyShapeData(cpShape* from, cpShape* to)
|
||||
|
||||
Reference in New Issue
Block a user