# \[AS3\]\[Box2d 2.02\] Staples Effect

**URL:** https://forum.kirupa.com/t/as3-box2d-2-02-staples-effect/330088
**Category:** programming
**Created:** [November 28, 2012, 3:59pm UTC](https://forum.kirupa.com/t/as3-box2d-2-02-staples-effect/330088 "2012-11-28T15:59:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kestor](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kestor](https://forum.kirupa.com/u/kestor)
#### Post date: [November 28, 2012, 3:59pm UTC](https://forum.kirupa.com/t/as3-box2d-2-02-staples-effect/330088/1 "2012-11-28T15:59:25Z")

</div>

Hello there.  
How can one achieve staples effect between 2 bodies in box2d at a click of a mouse?  
So lets say i have 2 bodies on the stage and if they are close enough and i click the mouse, the bodies get connected like with a staple at the mouse location.

How can one do that?
