Physics2D/RigidBody2D: Fix velocity func not being copied
This commit is contained in:
parent
966c0b32aa
commit
1e29790831
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue