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) {
  if (_gone || !_mine(body)) return;
  JPH_BodyInterface_SetFriction(_bodyInterface, _id(body), friction);
}