# SetSpritePhysicsRestitution

## Description

Sets the restitution (bounciness) value to use for this sprite during physics calculations. Should be in the range 0 to 1. Values greater than 1 will result in the sprite gaining energy from collisions which can cause an unstable result.

## Definition

SetSpritePhysicsRestitution( iSpriteIndex, restitution )

void agk::SetSpritePhysicsRestitution( UINT iSpriteIndex, float restitution )

## Parameters

- iSpriteIndex - The ID of the sprite to modify.
- restitution - The new restitution value.