PersistentTrails.CraftLoader.getPhysicMaterial C# (CSharp) Method

getPhysicMaterial() public static method

public static getPhysicMaterial ( ) : PhysicMaterial
return UnityEngine.PhysicMaterial
        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;
        }