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, setVirtualAddressAsCoOwner, sRestoreFromBinaryState, toRef, toRefCMethods inherited from class com.github.stephengold.joltjni.SerializableObject
getRttiMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, 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, targetVaMethods 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)
-