Returns True if the point X,Y in world coordinates lies within the sprite. False if not. Takes into account the rotation and scale values of the sprite.
Parameters |
Description |
const X: Single |
X position in world coordinates to check. |
const Y: Single |
Y position in world coordinates to check. |
Uses the shape assigned to it from Shape. If no shape is set it uses the sprite width and height as a box shape.
If you are testing a mouse or touch coordinate, remember to convert it to world coordinates using TAgkScene.ScreenToWorld.
Copyright (c) 2012. All rights reserved.
|