pass plane constant

This commit is contained in:
Wenlong Lu
2018-10-01 17:38:24 -07:00
parent 8cdb514ffb
commit 167520a5e6

View File

@@ -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)
{