Package com.github.stephengold.joltjni
Class CollideShapeSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.CollideSettingsBase
com.github.stephengold.joltjni.CollideShapeSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
Configurable options for a collide-shape query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the treatment of back-facing triangles.float
Return the maximum separation for which contacts will be reported.void
setBackFaceMode
(EBackFaceMode mode) Alter the treatment of back-facing triangles.void
setMaxSeparationDistance
(float distance) Alter the maximum separation for which contacts will be reported.Methods inherited from class com.github.stephengold.joltjni.CollideSettingsBase
getActiveEdgeMode, getActiveEdgeMovementDirection, getCollectFacesMode, getCollisionTolerance, getPenetrationTolerance, setActiveEdgeMode, setActiveEdgeMovementDirection, setCollectFacesMode, setCollisionTolerance, setPenetrationTolerance
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
CollideShapeSettings
public CollideShapeSettings()Instantiate default settings.
-
-
Method Details
-
getBackFaceMode
Return the treatment of back-facing triangles. The settings are unaffected. (native attribute: mBackFaceMode)- Returns:
- the enum value (not null)
-
getMaxSeparationDistance
public float getMaxSeparationDistance()Return the maximum separation for which contacts will be reported. The settings are unaffected. (native attribute: mMaxSeparationDistance)- Returns:
- the separation limit (in meters)
-
setBackFaceMode
Alter the treatment of back-facing triangles. (native attribute: mBackFaceMode)- Parameters:
mode
- the desired mode (not null, default=IgnoreBackFaces)
-
setMaxSeparationDistance
public void setMaxSeparationDistance(float distance) Alter the maximum separation for which contacts will be reported. (native attribute: mMaxSeparationDistance)- Parameters:
distance
- the desired separation limit (in meters, default=0)
-