Example #1
0
        /// <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);
        }
Example #2
0
 private static extern void Internal_CreateInstance(PhysicsMaterial instance, float staticFriction,
                                                    float dynamicFriction, float restitution);
Example #3
0
 private static extern void Internal_create(PhysicsMaterial managedInstance, float staticFriction, float dynamicFriction, float restitution);
 private static extern void Internal_setMaterial(IntPtr thisPtr, PhysicsMaterial material);
Example #5
0
 private static extern void Internal_CreateInstance(PhysicsMaterial instance, float staticFriction,
     float dynamicFriction, float restitution);