Package com.github.stephengold.joltjni
Class PhysicsMaterialSimple
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.PhysicsMaterial
com.github.stephengold.joltjni.PhysicsMaterialSimple
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstPhysicsMaterial
,ConstSerializableObject
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
A straightforward implementation of
PhysicsMaterial
.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate a default material.PhysicsMaterialSimple
(PhysicsMaterialSimple original) Instantiate a copy of the specified material.PhysicsMaterialSimple
(String name, ConstColor color) Instantiate a material with the specified properties. -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.PhysicsMaterial
getDebugColor, getDebugName, getRefCount, saveBinaryState, sDefault, setEmbedded, sRestoreFromBinaryState, toRef, toRefC
Methods inherited from class com.github.stephengold.joltjni.SerializableObject
getRtti
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRtti
-
Constructor Details
-
PhysicsMaterialSimple
public PhysicsMaterialSimple()Instantiate a default material. -
PhysicsMaterialSimple
Instantiate a copy of the specified material.- Parameters:
original
- the material to copy (notnull
, unaffected)
-
PhysicsMaterialSimple
Instantiate a material with the specified properties.- Parameters:
name
- the desired namecolor
- the desired color (not null, unaffected)
-