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