public static PhysicMaterial getPhysicMaterial()
{
if (ghostPhysicMaterial == null)
{
ghostPhysicMaterial = new PhysicMaterial("ghostPhysicMat");
ghostPhysicMaterial.dynamicFriction = 0.3f;
ghostPhysicMaterial.dynamicFriction2 = 0.3f;
ghostPhysicMaterial.frictionCombine = PhysicMaterialCombine.Average;
ghostPhysicMaterial.staticFriction = 0.3f;
ghostPhysicMaterial.staticFriction2 = 0.3f;
}
return ghostPhysicMaterial;
}