# SetSpritePhysicsTorque

## Description

Applies a torque to the rotation of the sprite, similar to applying a force to its movement. If the sprite is constrained by surrounding objects it may not rotate unless the torque is large enough to move those objects as well. The torque will last for this frame only, to continue applying this torque you must keep calling this function.
The reaction to a torque force is relative to the object's size, large objects will rotate slower than small objects given the same torque.

## Definition

SetSpritePhysicsTorque( iSpriteIndex, torque )

void agk::SetSpritePhysicsTorque( UINT iSpriteIndex, float torque )

## Parameters

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