From 167520a5e654bb6101167f4ca140c4437adab824 Mon Sep 17 00:00:00 2001 From: Wenlong Lu Date: Mon, 1 Oct 2018 17:38:24 -0700 Subject: [PATCH] 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) {