applyImpulse method

void applyImpulse(
  1. Vector3 position,
  2. Vector3 force
)

APPLY IMPULSE FORCE

Implementation

void applyImpulse(Vector3 position, Vector3 force){
  linearVelocity.addScaled(force, inverseMass);
  position..sub( this.position )..cross( force )..applyMatrix3Transpose(inverseInertia );
  angularVelocity.add( position );
}