Interface ConstSoftBodyContactSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
SoftBodyContactSettings
Read-only access to a
SoftBodyContactSettings object. (native type:
const SoftBodyContactSettings)-
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the scale factor for the inverse inertia of body 2.floatReturn the scale factor for the inverse mass of the soft body.floatReturn the scale factor for the inverse mass of body 2.booleanTest whether the contact should be treated as a sensor (no collision response).Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getInvInertiaScale2
float getInvInertiaScale2()Return the scale factor for the inverse inertia of body 2. The settings are unaffected.- Returns:
- the factor (0 = infinite inertia, 1 = use original inertia)
-
getInvMassScale1
float getInvMassScale1()Return the scale factor for the inverse mass of the soft body. The settings are unaffected.- Returns:
- the factor (0 = infinite mass, 1 = use original mass)
-
getInvMassScale2
float getInvMassScale2()Return the scale factor for the inverse mass of body 2. The settings are unaffected.- Returns:
- the factor (0 = infinite mass, 1 = use original mass)
-
getIsSensor
boolean getIsSensor()Test whether the contact should be treated as a sensor (no collision response). The settings are unaffected.- Returns:
trueif treated as a sensor, otherwisefalse
-