java.lang.Object
com.github.stephengold.joltjni.ObjectStreamIn
Utility class for reading Jolt Physics objects from files or streams.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
sReadObject
(StringStream stream, BodyCreationSettings[] storeBcs) Read a body-settings object from the specified stream.static boolean
sReadObject
(StringStream stream, ConstraintSettingsRef settingsRef) Read a constraint-settings object from the specified stream.static boolean
sReadObject
(StringStream stream, GroupFilterTableRef filterRef) Read a group-filter table from the specified stream.static boolean
sReadObject
(StringStream stream, PhysicsMaterialRef materialRef) Read a material from the specified stream.static boolean
sReadObject
(StringStream stream, PhysicsSceneRef sceneRef) Read a scene from the specified stream.static boolean
sReadObject
(StringStream stream, RagdollSettingsRef settingsRef) Read a ragdoll-settings object from the specified stream.static boolean
sReadObject
(StringStream stream, ShapeSettingsRef settingsRef) Read a shape-settings object from the specified stream.static boolean
sReadObject
(StringStream stream, SoftBodyCreationSettings[] storeSbcs) Read a soft-body settings object from the specified stream.static boolean
sReadObject
(StringStream stream, SoftBodySharedSettingsRef settingsRef) Read a soft-body shared-settings object from the specified stream.static boolean
sReadObject
(StringStream stream, VehicleControllerSettingsRef settingsRef) Read a vehicle-controller settings object from the specified stream.static boolean
sReadObject
(String fileName, Ref storeRef) Read a ref-counted target from the specified file.
-
Method Details
-
sReadObject
Read a ref-counted target from the specified file.- Parameters:
fileName
- the path to the file (not null)storeRef
- where to store the reference to the de-serialized object (not null, modified)- Returns:
true
if successful, otherwisefalse
-
sReadObject
Read a body-settings object from the specified stream.- Parameters:
stream
- the stream to read from (not null)storeBcs
- where to store the de-serialized settings (not null, length>0, modified)- Returns:
true
if successful, otherwisefalse
-
sReadObject
Read a constraint-settings object from the specified stream.- Parameters:
stream
- the stream to read from (not null)settingsRef
- where to store the reference to the de-serialized settings (not null, modified)- Returns:
true
if successful, otherwisefalse
-
sReadObject
Read a group-filter table from the specified stream.- Parameters:
stream
- the stream to read from (not null)filterRef
- where to store the reference to the de-serialized filter (not null, modified)- Returns:
true
if successful, otherwisefalse
-
sReadObject
Read a material from the specified stream.- Parameters:
stream
- the stream to read from (not null)materialRef
- where to store the reference to the de-serialized material (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 reference to the de-serialized scene (not null, modified)- Returns:
true
if successful, otherwisefalse
-
sReadObject
Read a ragdoll-settings object from the specified stream.- Parameters:
stream
- the stream to read from (not null)settingsRef
- where to store the reference to the de-serialized settings (not null, modified)- Returns:
true
if successful, otherwisefalse
-
sReadObject
Read a shape-settings object from the specified stream.- Parameters:
stream
- the stream to read from (not null)settingsRef
- where to store the reference to the de-serialized shape settings (not null, modified)- Returns:
true
if successful, otherwisefalse
-
sReadObject
Read a soft-body settings object from the specified stream.- Parameters:
stream
- the stream to read from (not null)storeSbcs
- where to store the de-serialized settings (not null, length>0, modified)- Returns:
true
if successful, otherwisefalse
-
sReadObject
Read a vehicle-controller settings object from the specified stream.- Parameters:
stream
- the stream to read from (not null)settingsRef
- where to store the reference to the de-serialized settings (not null, modified)- Returns:
true
if successful, otherwisefalse
-