# Collision detection heavy on the CPU

**URL:** <https://forum.kirupa.com/t/collision-detection-heavy-on-the-cpu/72914>\
**Category:** flash\
**Created:** [December 10, 2004, 12:20pm UTC](https://forum.kirupa.com/t/collision-detection-heavy-on-the-cpu/72914 "2004-12-10T12:20:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WoGk7](https://avatars.discourse-cdn.com/v4/letter/w/22d042/32.png) [@WoGk7](https://forum.kirupa.com/u/WoGk7)\
**Post date:** [December 10, 2004, 12:20pm UTC](https://forum.kirupa.com/t/collision-detection-heavy-on-the-cpu/72914/1 "2004-12-10T12:20:19Z")

</div>

Hi.

I´m making a site for a camping place. It´s an isometric map of the place. Different sections activate when u reach a certain place on the map.  
To restrict the movement of the user to roads I´ve put a bunch of clips along those. I´m using hitTest to see if I want to permit movement in each direction. Thing is there is a lot of those clips and it makes the whole thing run slow.  
I was wondering if any of you gurus out there knows how to do it better. I thouth i could just draw a line and have a hitTest on that, but since the lines are diagonal and hitTest checks the bounding box that wont work.

Ideas… :ear:
