# Super-accurate hitTest

**URL:** <https://forum.kirupa.com/t/super-accurate-hittest/244762>\
**Category:** programming\
**Created:** [November 21, 2007, 3:30pm UTC](https://forum.kirupa.com/t/super-accurate-hittest/244762 "2007-11-21T15:30:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fw2803](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@fw2803](https://forum.kirupa.com/u/fw2803)\
**Post date:** [November 21, 2007, 3:30pm UTC](https://forum.kirupa.com/t/super-accurate-hittest/244762/1 "2007-11-21T15:30:54Z")

</div>

Hi there

Point hitTest provides an accurate system. However, using point hitTest still allows objects to penetrate some impassable objects such as walls in a game. How to measure the shortest distance between an irregular boundary and a point?

Thanks
