Interface ConstCharacterBaseSettings
- All Superinterfaces:
Comparable<ConstJoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Subinterfaces:
ConstCharacterSettings,ConstCharacterVirtualSettings
- All Known Implementing Classes:
CharacterBaseSettings,CharacterSettings,CharacterVirtualSettings
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.getShape()Acquire read-only access to theShape.Return the supporting volume.getUp()Return 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, va
-
Method Details
-
getEnhancedInternalEdgeRemoval
boolean getEnhancedInternalEdgeRemoval()Test whether to make an extra effort to remove contacts with internal edges. The settings are unaffected.- Returns:
- true to remove ghost contacts, otherwise false
-
getMaxSlopeAngle
float getMaxSlopeAngle()Return the maximum slope on which the character can walk. The settings are unaffected.- Returns:
- the angle (in radians)
-
getShape
ConstShape getShape()Acquire read-only access to theShape. The settings are unaffected.- Returns:
- a new JVM object with the pre-existing native object assigned, or
null
-
getSupportingVolume
Plane getSupportingVolume()Return the supporting volume. The settings are unaffected.- Returns:
- a new JVM object with the pre-existing native object assigned
-
getUp
Vec3 getUp()Return the character's "up" direction. The settings are unaffected.- Returns:
- a new direction vector (in system coordinates)
-