Example #1
0
 void SetContactFriction()
 {
     //Foreach in scenario.contactmats:
     if (scenario.contactFrictions.Count == 0)
     {
         Agx_Simulation.AddContactMaterial("Plastic", "Rock", 0.4f, 0.3f, 3.654E9);//Standard plastic and rock
     }
     foreach (ContactFriction cf in scenario.contactFrictions)
     {
         Agx_Simulation.AddContactMaterial(cf.material1, cf.material2, cf.restitution, cf.friction, cf.youngsModulus);
     }
 }
Example #2
0
 void SetContactPoints()
 {
     Agx_Simulation.AddContactMaterial("Plastic", "Rock", 0.4f, 0.3f, (float)3.654E9);
 }