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