setupElasticCollision method

void setupElasticCollision({
  1. bool? enabled,
  2. double? bounciness,
  3. double? minBounceVelocity,
})

Implementation

void setupElasticCollision({
  bool? enabled,
  double? bounciness,
  double? minBounceVelocity,
}) {
  _bouncingObjectEnabled = enabled ?? _bouncingObjectEnabled;
  _minBounceVelocity = minBounceVelocity ?? _minBounceVelocity;
  _restitution = bounciness ?? _restitution;
}