setupElasticCollision method

void setupElasticCollision({
  1. bool? enabled,
  2. double? restitution,
})

Implementation

void setupElasticCollision({
  bool? enabled,
  double? restitution,
}) {
  _bouncingObjectEnabled = enabled ?? _bouncingObjectEnabled;
  _restitution = restitution ?? _restitution;
}