addImpulse method

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

Changes body's velocity at once (N·s).

Implementation

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