@ -650,7 +650,10 @@ int plSimulationMgr::GetMaterialIdx(NxScene* scene, float friction, float restit
desc.dynamicFriction = friction;
desc.staticFriction = friction;
NxMaterial* mat = scene->createMaterial(desc);
if (mat)
return mat->getMaterialIndex();
else
return NULL;
}
/////////////////////////////////////////////////////////////////