Package com.github.stephengold.joltjni
Class PhysicsMaterial
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.PhysicsMaterial
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstPhysicsMaterial,RefTarget,AutoCloseable,Comparable<ConstJoltPhysicsObject>
Surface properties of (part of) a
Shape.-
Method Summary
Modifier and TypeMethodDescriptionReturn the debug name.intCount the active references to the nativePhysicsMaterial.static ConstPhysicsMaterialsDefault()Return the default material, used when a shape has no material defined.voidMark the nativePhysicsMaterialas embedded.toRef()Create a counted reference to the nativePhysicsMaterial.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
Method Details
-
sDefault
Return the default material, used when a shape has no material defined.- Returns:
- a new immutable JVM object with the pre-existing native object assigned
-
getDebugName
Return the debug name. The material is unaffected.- Specified by:
getDebugNamein interfaceConstPhysicsMaterial- Returns:
- a string of text or null
-
getRefCount
public int getRefCount()Count the active references to the nativePhysicsMaterial. The material is unaffected.- Specified by:
getRefCountin interfaceRefTarget- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativePhysicsMaterialas embedded.- Specified by:
setEmbeddedin interfaceRefTarget
-
toRef
Create a counted reference to the nativePhysicsMaterial.
-