Class ObjectStreamOut

java.lang.Object
com.github.stephengold.joltjni.ObjectStreamOut

public final class ObjectStreamOut extends Object
Utility class for writing Jolt Physics objects to streams.
  • Method Details

    • sWriteObject

      public static boolean sWriteObject(StringStream stream, EStreamType streamType, PhysicsScene scene)
      Write the specified scene to the specified stream.
      Parameters:
      stream - the stream to write to (not null)
      streamType - the type of stream (not null)
      scene - the scene to write (not null, unaffected)
      Returns:
      true if successful, otherwise false
    • sWriteObject

      public static boolean sWriteObject(StringStream stream, EStreamType streamType, RagdollSettings settings)
      Write the specified ragdoll settings to the specified stream.
      Parameters:
      stream - the stream to write to (not null)
      streamType - the type of stream (not null)
      settings - the settings to write (not null, unaffected)
      Returns:
      true if successful, otherwise false