SoftBody constructor

SoftBody({
  1. required ShapeType shape,
  2. double mass = 1,
  3. double stiffness = 100,
  4. int numOfParticles = 18,
})

Implementation

SoftBody({
  required this.shape,
  this.mass = 1,
  this.stiffness = 100,
  int numOfParticles = 18,
});