setRestitution method

  1. @override
void setRestitution(
  1. int body,
  2. double restitution
)
override

Sets body's bounciness.

Implementation

@override
void setRestitution(int body, double restitution) {
  if (_gone || !_mine(body)) return;
  JPH_BodyInterface_SetRestitution(_bodyInterface, _id(body), restitution);
}