Physics2D/RigidBody2D: Fix body type not being copied
This commit is contained in:
@@ -195,6 +195,7 @@ Nazara Engine:
|
|||||||
- GuillotineBinPack::Insert overload taking multiple rectangles no longer does a heap allocation
|
- 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 now have a default constructor initializing them with no size/capacity
|
||||||
- StackArray and StackVector are now movable
|
- StackArray and StackVector are now movable
|
||||||
|
- Fixed RigidBody2D::Copy not copying kinematic/dynamic/static status
|
||||||
|
|
||||||
Nazara Development Kit:
|
Nazara Development Kit:
|
||||||
- Added ImageWidget (#139)
|
- Added ImageWidget (#139)
|
||||||
|
|||||||
@@ -673,6 +673,8 @@ namespace Nz
|
|||||||
cpBodySetPosition(to, cpBodyGetPosition(from));
|
cpBodySetPosition(to, cpBodyGetPosition(from));
|
||||||
cpBodySetTorque(to, cpBodyGetTorque(from));
|
cpBodySetTorque(to, cpBodyGetTorque(from));
|
||||||
cpBodySetVelocity(to, cpBodyGetVelocity(from));
|
cpBodySetVelocity(to, cpBodyGetVelocity(from));
|
||||||
|
|
||||||
|
cpBodySetType(to, cpBodyGetType(from));
|
||||||
}
|
}
|
||||||
|
|
||||||
void RigidBody2D::CopyShapeData(cpShape* from, cpShape* to)
|
void RigidBody2D::CopyShapeData(cpShape* from, cpShape* to)
|
||||||
|
|||||||
Reference in New Issue
Block a user