Interface ConstCharacterBaseSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Subinterfaces:
ConstCharacterSettings,ConstCharacterVirtualSettings
- All Known Implementing Classes:
CharacterBaseSettings,CharacterSettings,CharacterSettingsRef,CharacterVirtualSettings,CharacterVirtualSettingsRef
Read-only access to a
CharacterBaseSettings object. (native type:
const CharacterBaseSettings)-
Method Summary
Modifier and TypeMethodDescriptionbooleanTest whether to make an extra effort to remove contacts with internal edges.floatReturn the maximum slope on which the character can walk.intCount the active references to the nativeCharacterBaseSettings.getShape()Access theShape.Copy the supporting volume.getUp()Copy the character's "up" direction.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getEnhancedInternalEdgeRemoval
boolean getEnhancedInternalEdgeRemoval()Test whether to make an extra effort to remove contacts with internal edges. The settings are unaffected.- Returns:
trueto remove ghost contacts, otherwisefalse
-
getMaxSlopeAngle
float getMaxSlopeAngle()Return the maximum slope on which the character can walk. The settings are unaffected.- Returns:
- the angle (in radians)
-
getRefCount
int getRefCount()Count the active references to the nativeCharacterBaseSettings. The settings are unaffected.- Returns:
- the count (≥0)
-
getShape
ConstShape getShape()Access theShape. The settings are unaffected.- Returns:
- a new JVM object with the pre-existing native object assigned, or
null
-
getSupportingVolume
Plane getSupportingVolume()Copy the supporting volume. The settings are unaffected.- Returns:
- a new object
-
getUp
Vec3 getUp()Copy the character's "up" direction. The settings are unaffected.- Returns:
- a new direction vector (in system coordinates)
-