Physics2D/RigidBody2D: Fix body type not being copied
This commit is contained in:
parent
8004c84663
commit
62023c6af7
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue