PhysicsProperties constructor

const PhysicsProperties({
  1. double gravity = 9.8,
  2. double friction = 0.5,
  3. double restitution = 0.8,
  4. double mass = 1.0,
})

Implementation

const PhysicsProperties({
  this.gravity = 9.8,
  this.friction = 0.5,
  this.restitution = 0.8,
  this.mass = 1.0,
});