Merge pull request #1910 from WenlongLu/create_status
Two minor updates for PhysicsServerCommandProcessor
This commit is contained in:
@@ -4046,7 +4046,7 @@ bool PhysicsServerCommandProcessor::processCreateCollisionShapeCommand(const str
|
||||
clientCmd.m_createUserShapeArgs.m_shapes[i].m_planeNormal[1],
|
||||
clientCmd.m_createUserShapeArgs.m_shapes[i].m_planeNormal[2]);
|
||||
|
||||
shape = worldImporter->createPlaneShape(planeNormal, 0);
|
||||
shape = worldImporter->createPlaneShape(planeNormal, clientCmd.m_createUserShapeArgs.m_shapes[i].m_planeConstant);
|
||||
shape->setMargin(m_data->m_defaultCollisionMargin);
|
||||
if (compound)
|
||||
{
|
||||
@@ -8579,6 +8579,7 @@ bool PhysicsServerCommandProcessor::processRemoveBodyCommand(const struct Shared
|
||||
m_data->m_worldImporters.removeAtIndex(foundIndex);
|
||||
delete importer;
|
||||
m_data->m_userCollisionShapeHandles.freeHandle(removeCollisionShapeId);
|
||||
serverCmd.m_type = CMD_REMOVE_BODY_COMPLETED;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user