Write() public method

public Write ( string filename ) : void
filename string
return void
Example #1
0
 /// <summary>
 /// Write out a json script compatible with R.U.B.E. from current LDPhysics model.
 /// See https://www.iforce2d.net/rube for more details.
 /// </summary>
 /// <param name="fileName">The full path to the json file to create.</param>
 public static void WriteJson(Primitive fileName)
 {
     try
     {
         JsonPhysics physicsJson = new JsonPhysics(_Engine);
         physicsJson.Write(fileName);
     }
     catch (Exception ex)
     {
         Utilities.OnError(Utilities.GetCurrentMethod(), ex);
     }
 }