Interface ConstCharacterSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstCharacterBaseSettings,ConstJoltPhysicsObject
- All Known Implementing Classes:
CharacterSettings,CharacterSettingsRef
Read-only access to a
CharacterSettings object. (native type: const
CharacterSettings)-
Method Summary
Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstCharacterBaseSettings
getEnhancedInternalEdgeRemoval, getMaxSlopeAngle, getRefCount, getShape, getSupportingVolume, getUpMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getFriction
float getFriction()Return the friction ratio. The settings are unaffected.- Returns:
- the ratio (typically ≥0 and ≤1)
-
getGravityFactor
float getGravityFactor()Return the gravity factor. The settings are unaffected.- Returns:
- the factor
-
getLayer
int getLayer()Return the index of the object layer. The settings are unaffected.- Returns:
- the layer index (≥0, <numObjectLayers)
-
getMass
float getMass()Return the character's mass. The settings are unaffected.- Returns:
- the mass (in kilograms)
-