# SetSpritePhysicsIsBullet

## Description

Set this to true if the sprite is likely to be moving very fast, like a bullet, as it will then be checked more thoroughly for collision with other dynamic sprites, using this unnecessarily will affect performance. This is called Continuous Collision Detection (CCD) and applies automatically to collision checks between this sprite and static objects. This command turns CCD on for collision checks between this sprite and dynamic objects. This will not work if global CCD is turned off with SetPhysicsCCD.

## Definition

SetSpritePhysicsIsBullet( iSpriteIndex, bullet )

void agk::SetSpritePhysicsIsBullet( UINT iSpriteIndex, int bullet )

## Parameters

- iSpriteIndex - The ID of the sprite to modify.
- bullet - 1 to set this sprite as a bullet, 0 to turn it off.