setFriction method

  1. @override
void setFriction(
  1. int body,
  2. double friction
)
override

Sets body's friction.

Implementation

@override
void setFriction(int body, double friction) =>
    bodies[body]?.friction = friction;