# GetSpriteInCircle

## Description

Returns 1 if the sprite's collision shape is touching the given circle in world coordinates, 0 if not. If the sprite does not have a shape it is assigned a box shape of its own which will remain after this command. This command takes into account the rotation and scale of the sprite when checking intersection. Note that due to aspect ratio modifications this command does not behave as expect when using the percentage coordinate system. Instead it will check an ellipse with the correct radius in the X direction but a larger radius in the Y direction.

## Definition

integer GetSpriteInCircle( iSprite, x1, y1, radius )

int agk::GetSpriteInCircle( UINT iSprite, float x1, float y1, float radius )

## Parameters

- iSprite - The ID of the sprite to check
- x1 - The X coordinate of the center of the circle in world coordinates.
- y1 - The Y coordinate of the center of the circle in world coordinates.
- radius - The radius of the circle in world coordinates.