Package com.github.stephengold.joltjni
Class PhysicsMaterialSimple
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.PhysicsMaterial
com.github.stephengold.joltjni.PhysicsMaterialSimple
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstPhysicsMaterial
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
A straightforward implementation of
PhysicsMaterial
.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate a default material.PhysicsMaterialSimple
(String name, ConstColor color) Instantiate a material. -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.PhysicsMaterial
getDebugColor, getDebugName, getRefCount, sDefault, setEmbedded, toRef, toRefC
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, 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
-
Constructor Details
-
PhysicsMaterialSimple
public PhysicsMaterialSimple()Instantiate a default material. -
PhysicsMaterialSimple
Instantiate a material.- Parameters:
name
- the desired namecolor
- the desired color (not null, unaffected)
-