addAngularImpulse method

  1. @override
void addAngularImpulse(
  1. int body,
  2. Vector3 impulse
)
override

Changes body's spin at once (N·m·s).

Implementation

@override
void addAngularImpulse(int body, Vector3 impulse) {
  if (!_dynamic(body)) return;
  JPH_BodyInterface_AddAngularImpulse(
    _bodyInterface,
    _id(body),
    _vec(_v1, impulse),
  );
}