virtual public DisplayObject HitTestPoint(Point localPoint)
{
// TODO its kinda stupid that this functions fails if the object is not touchable
// invisible or untouchable objects cause the test to fail
if (!Visible || !Touchable)
{
return null;
}
// otherwise, check bounding box
if (BoundsInSpace(this).Contains(localPoint))
{
return this;
}
return null;
}