Interface ConstSoftBodyContactSettings
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
SoftBodyContactSettings
Read-only access to a
SoftBodyContactSettings
object. (native type:
const SoftBodyContactSettings)-
Method Summary
Modifier and TypeMethodDescriptionfloat
Return the scale factor for the inverse inertia of body 2.float
Return the scale factor for the inverse mass of the soft body.float
Return the scale factor for the inverse mass of body 2.boolean
Test whether the contact should be treated as a sensor (no collision response).Methods inherited from interface java.lang.Comparable
compareTo
Methods 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:
true
if treated as a sensor, otherwisefalse
-