public class SoftBodyMaterial extends NativePhysicsObject
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
loggerN| Constructor and Description |
|---|
SoftBodyMaterial(PhysicsSoftBody body)
Instantiate a material with the default properties.
|
| Modifier and Type | Method and Description |
|---|---|
float |
angularStiffness()
Read the angular-stiffness coefficient (native field: m_kAST).
|
float |
linearStiffness()
Read the linear-stiffness coefficient (native field: m_kLST).
|
void |
setAngularStiffness(float coefficient)
Alter the angular-stiffness coefficient (native field: m_kAST).
|
void |
setLinearStiffness(float coefficient)
Alter the linear-stiffness coefficient (native field: m_kLST).
|
void |
setVolumeStiffness(float coefficient)
Alter the volume-stiffness coefficient (native field: m_kVST).
|
float |
volumeStiffness()
Read the volume-stiffness coefficient (native field: m_kVST).
|
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, toString, unassignNativeObjectpublic static final java.util.logging.Logger logger
public SoftBodyMaterial(PhysicsSoftBody body)
body - the body to which this material will apply (not null)public float angularStiffness()
public float linearStiffness()
public void setAngularStiffness(float coefficient)
coefficient - the desired coefficient (≥0, ≤1, default=1)public void setLinearStiffness(float coefficient)
coefficient - the desired coefficient (≥0, ≤1, default=1)public void setVolumeStiffness(float coefficient)
coefficient - the desired coefficient (≥0, ≤1, default=1)public float volumeStiffness()