Returns True if the given point in world coordinates lies within the sprite. False if not. Takes into account the rotation and scale values of the sprite.
function HitTest(const P: TAgkPoint): Boolean; overload;
Parameters |
Description |
const P: TAgkPoint |
the point 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.
|