# Overlapping problem

**URL:** <https://forum.kirupa.com/t/overlapping-problem/210675>\
**Category:** programming\
**Created:** [December 20, 2006, 11:05pm UTC](https://forum.kirupa.com/t/overlapping-problem/210675 "2006-12-20T23:05:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darth\_Arias](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@Darth\_Arias](https://forum.kirupa.com/u/Darth_Arias)\
**Post date:** [December 20, 2006, 11:05pm UTC](https://forum.kirupa.com/t/overlapping-problem/210675/1 "2006-12-20T23:05:00Z")

</div>

OK, I have this:

> **[ImageShack - Best place for all of your image hosting and image sharing needs](https://imageshack.com/)**
>
> Unlimited space to host images, easy to use image uploader, albums, photo hosting, sharing, dynamic image resizing on web and mobile.

I want it so the legs do not overlap. Here is part of the code for the legs:

> [@""Actionscript""](#):
>
> var dx = this.\_x-body\_mc.\_x;  
> var dy = this.\_y-body\_mc.\_y;  
> var angle = Math.atan2(dy, dx);  
> var targetX = body\_mc.\_x+Math.cos(angle)\*radius;  
> var targetY = body\_mc.\_y+Math.sin(angle)\*radius;

How might I achieve this? Any advice is appreciated.
