FixtureDef constructor

FixtureDef(
  1. Shape shape, {
  2. Object? userData,
  3. double friction = 0,
  4. double restitution = 0,
  5. double density = 1,
  6. bool isSensor = false,
  7. Filter? filter,
})

Implementation

FixtureDef(
  this.shape, {
  this.userData,
  this.friction = 0,
  this.restitution = 0,
  this.density = 1,
  this.isSensor = false,
  Filter? filter,
}) : filter = filter ?? Filter();