applyImpulse method
void
applyImpulse(
- Vector3 position,
- 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 );
}