# SetSpritePhysicsAngularImpulse

## Description

Similar to a torque force, but applied only once. Whilst forces are applied continuously over time gradually influencing a sprite's velocity, an impulse simulates the sprite being hit suddenly and immediately changes the angular velocity with the equivalent power of a similar torque force applied for 1 second.
If the sprite is constrained by surrounding objects it may not rotate unless the impulse is large enough to move those objects as well.
The reaction to an impulse is relative to the object's size, large objects will rotate slower than small objects given the same impulse.

## Definition

SetSpritePhysicsAngularImpulse( iSpriteIndex, impulse )

void agk::SetSpritePhysicsAngularImpulse( UINT iSpriteIndex, float impulse )

## Parameters

- iSpriteIndex - The ID of the sprite to modify.
- impulse - The size of the force to apply to the sprite's rotation. may be negative.