From 167520a5e654bb6101167f4ca140c4437adab824 Mon Sep 17 00:00:00 2001 From: Wenlong Lu Date: Mon, 1 Oct 2018 17:38:24 -0700 Subject: [PATCH 1/2] pass plane constant --- examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index 835e3c59f..db024b613 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -3964,7 +3964,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) { From 085984f00337d9c7cec60fd918d8002f89800d41 Mon Sep 17 00:00:00 2001 From: Wenlong Lu Date: Mon, 1 Oct 2018 17:54:23 -0700 Subject: [PATCH 2/2] update complete status for removing collision shape --- examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index db024b613..9618dda6e 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -8496,6 +8496,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; } } }