PhysicsMaterial constructor

const PhysicsMaterial({
  1. double friction = 0.5,
  2. double restitution = 0.0,
  3. double density = 1.0,
  4. CombineRule frictionCombine = CombineRule.average,
  5. CombineRule restitutionCombine = CombineRule.average,
})

Implementation

const PhysicsMaterial({
  this.friction = 0.5,
  this.restitution = 0.0,
  this.density = 1.0,
  this.frictionCombine = CombineRule.average,
  this.restitutionCombine = CombineRule.average,
});