Interface ConstPhysicsMaterial
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject,ConstSerializableObject
- All Known Implementing Classes:
PhysicsMaterial,PhysicsMaterialSimple
Read-only access to a
PhysicsMaterial. (native type: const
PhysicsMaterial)-
Method Summary
Modifier and TypeMethodDescriptionCopy the debug color.Return the debug name.voidsaveBinaryState(StreamOut stream) Save the material to the specified binary stream.toRefC()Create a counted reference to the nativePhysicsMaterial.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVaMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRtti
-
Method Details
-
getDebugColor
Color getDebugColor()Copy the debug color. The material is unaffected.- Returns:
- a new object
-
getDebugName
String getDebugName()Return the debug name. The material is unaffected.- Returns:
- a string of text or
null
-
saveBinaryState
Save the material to the specified binary stream. The material is unaffected.- Parameters:
stream- the stream to write to (not null)
-
toRefC
PhysicsMaterialRefC toRefC()Create a counted reference to the nativePhysicsMaterial.- Returns:
- a new JVM object with a new native object assigned
-