java.lang.Object
com.github.stephengold.joltjni.ObjectStreamOut
Utility class for writing Jolt Physics objects to streams.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
sWriteObject
(StringStream stream, EStreamType streamType, PhysicsScene scene) Write the specified scene to the specified stream.static boolean
sWriteObject
(StringStream stream, EStreamType streamType, RagdollSettings settings) Write the specified ragdoll settings to the specified stream.
-
Method Details
-
sWriteObject
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, otherwisefalse
-
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, otherwisefalse
-