Package com.github.stephengold.joltjni
Class ShapeSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.ShapeSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject,RefTarget,AutoCloseable,Comparable<ConstJoltPhysicsObject>
- Direct Known Subclasses:
CompoundShapeSettings,ConvexShapeSettings,DecoratedShapeSettings,EmptyShapeSettings,HeightFieldShapeSettings,MeshShapeSettings,PlaneShapeSettings
Settings used to construct a
Shape.-
Method Summary
Modifier and TypeMethodDescriptionvoidInvoke this method after altering the settings but before generating any new shapes.create()Generate aShapeResultfrom these settings.intCount the active references to the nativeShapeSettings.voidMark the nativeShapeSettingsas embedded.toRef()Create a counted reference to the nativeShapeSettings.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, va
-
Method Details
-
clearCachedResult
public void clearCachedResult()Invoke this method after altering the settings but before generating any new shapes. -
create
Generate aShapeResultfrom these settings.- Returns:
- a new JVM object with a new native object assigned
-
getRefCount
public int getRefCount()Count the active references to the nativeShapeSettings. The settings are unaffected.- Specified by:
getRefCountin interfaceRefTarget- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeShapeSettingsas embedded.- Specified by:
setEmbeddedin interfaceRefTarget
-
toRef
Create a counted reference to the nativeShapeSettings.
-