The material of a soft body: the softness of its constraints, its elasticity, plasticity and tearing thresholds.

A material is a plain JavaScript object; pass it to SoftBodyDesc.setMaterial or SoftBody.setMaterial to apply it.

Constructors

Properties

bendSoftness: SpringCoefficients

Softness of the bending constraints (bend edges and dihedrals).

deformationDamping: number

Damping of the deformation velocity of the elastic cells.

edgePlasticCreep: number

Rate (per second) at which an edge's rest length follows its stretch past the yield.

edgePlasticFlow: SoftEdgePlasticFlow

Which strains make the edge rest lengths flow.

edgePlasticMax: number

Largest relative change of an edge's rest length.

edgePlasticYield: number

Strain beyond which the rest length of an edge flows (0 disables edge plasticity).

edgeSoftness: SpringCoefficients

Softness of the structural edges.

elasticDampingRatio: number

Damping ratio of the elastic cells.

interiorStrength: number

Multiplier of the tear thresholds for the interior elements (relative to the surface).

maxTearsPerStep: number

Largest number of elements torn per step.

minPiece: number

Smallest piece (in elements) a tear may split off, or null for the default.

plasticCreep: number

Rate (per second) at which an elastic cell's rest shape follows its deformation past the yield.

plasticMax: number

Largest accumulated plastic deformation of an elastic cell.

plasticYield: number

Strain beyond which the rest shape of an elastic cell flows (0 disables plasticity).

poissonRatio: number

Poisson's ratio of the elastic cells.

shapeMatchingSoftness: SpringCoefficients

Softness of the shape-matching constraints.

tearForce: number

Force beyond which an element tears, or null for no force-based tearing.

tearSmoothing: number

Time constant (seconds) of the smoothing applied to the load before comparing it to tearForce.

tearStrain: number

Strain beyond which an element tears, or null for no strain-based tearing.

volumeSoftness: SpringCoefficients

Softness of the area/volume preservation constraints.

youngModulus: number

Young's modulus of the elastic cells (Corotational and NeoHookean cell models).

copyFromRaw: any

Methods

  • Internal

    Returns RawSoftBodyMaterial

  • A material whose edge, bend, volume and shape-matching softness all take the same value.

    Parameters

    • naturalFrequency: number
    • dampingRatio: number

    Returns SoftBodyMaterial