java.lang.Object
com.github.stephengold.joltjni.ObjectStreamIn
Utility class for reading Jolt Physics objects from files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
sReadObject
(StringStream stream, PhysicsSceneRef sceneRef) Read a scene from the specified stream.static boolean
sReadObject
(StringStream stream, RagdollSettingsRef settingsRef) Read ragdoll settings from the specified stream.static boolean
sReadObject
(String fileName, Ref storeRef) Read an object from the specified file.
-
Method Details
-
sReadObject
Read an object from the specified file.- Parameters:
fileName
- the path to the file (not null)storeRef
- where to store the de-serialized object (not null, modified)- Returns:
true
if successful, otherwisefalse
-
sReadObject
Read a scene from the specified stream.- Parameters:
stream
- the stream to read from (not null)sceneRef
- where to store the de-serialized scene (not null, modified)- Returns:
true
if successful, otherwisefalse
-
sReadObject
Read ragdoll settings from the specified stream.- Parameters:
stream
- the stream to read from (not null)settingsRef
- where to store the de-serialized settings (not null, modified)- Returns:
true
if successful, otherwisefalse
-