/// <summary> /// Creates a new physics material with the default properties in the specified folder. /// </summary> /// <param name="folder">Folder relative to project library to create the material in.</param> public static void CreateEmptyPhysicsMaterial(string folder) { string path = Path.Combine(folder, "New Physics Material.asset"); path = GetUniquePath(path); PhysicsMaterial material = new PhysicsMaterial(); ProjectLibrary.Create(material, path); }
private static extern void Internal_CreateInstance(PhysicsMaterial instance, float staticFriction, float dynamicFriction, float restitution);
private static extern void Internal_create(PhysicsMaterial managedInstance, float staticFriction, float dynamicFriction, float restitution);
private static extern void Internal_setMaterial(IntPtr thisPtr, PhysicsMaterial material);
private static extern void Internal_CreateInstance(PhysicsMaterial instance, float staticFriction, float dynamicFriction, float restitution);