PhysicsMaterial constructor
const
PhysicsMaterial({
- double friction = 0.5,
- double restitution = 0.0,
- double density = 1.0,
- CombineRule frictionCombine = CombineRule.average,
- 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,
});