I'm having some trouble figuring out if a static terrain's phyx material actually works. I have this setup like so;
// make a phyx material for the terrain, so it doesn't make objects bounce so much
Terrain[ 0 ].iMaterial = Free_Number(5);
dbPhyMakeMaterial(Terrain[ 0 ].iMaterial, "Terrain0");
// set material properties
dbPhySetMaterialRestitution(Terrain[ 0 ].iMaterial, LUA_Get_Int("terrain\\terrain0\\terrain.lua", "Restitution"));
dbPhySetMaterialDynamicFriction(Terrain[ 0 ].iMaterial, LUA_Get_Int("terrain\\terrain0\\terrain.lua", "Friction"));
dbPhySetMaterialRestitutionCombine(Terrain[ 0 ].iMaterial, LUA_Get_Int("terrain\\terrain0\\terrain.lua", "Restitution_Combine"));
dbPhySetMaterialFrictionCombine(Terrain[ 0 ].iMaterial, LUA_Get_Int("terrain\\terrain0\\terrain.lua", "Friction_Combine"));
// build the material for use by the simulation
dbPhyBuildMaterial(Terrain[ 0 ].iMaterial);
And I basically have the values set so that they DO NOT bounce or roll and i've applied this to my static terrain. But when i drop stuff onto the terrain it bounces and rolls around like normal.
I then went and applied a similar material to the objects i am dropping on the terrain and they still bounce and roll like normal, but now they seem to stop when they touch each other - which is exactly what it should do. But the terrain material seems to have no affect, only the objects affect each other.