Interface ConstCharacterSettings
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstCharacterBaseSettings
,ConstJoltPhysicsObject
- All Known Implementing Classes:
CharacterSettings
Read-only access to a
CharacterSettings
object. (native type: const
CharacterSettings)-
Method Summary
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstCharacterBaseSettings
getEnhancedInternalEdgeRemoval, getMaxSlopeAngle, getShape, getSupportingVolume, getUp
Methods 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)
-