Returns True if the sprite's collision shape is touching the given circle in world coordinates, False if not.
function InCircle(const Center: TAgkPoint; const Radius: Single): Boolean; overload;
|
Parameters |
Description |
|
const Center: TAgkPoint |
The center of the circle in world coordinates. |
|
const Radius: Single |
The radius of the circle in world coordinates. |
Whether the sprite is touching the box.
If the sprite does not have a shape it is assigned a box shape of its own which will remain after this command. This method takes into account the rotation and scale of the sprite when checking interesection.
|
Copyright (c) 2012. All rights reserved.
|