# How to make an object repel from another?

**URL:** <https://forum.kirupa.com/t/how-to-make-an-object-repel-from-another/86146>\
**Category:** Uncategorized\
**Created:** [April 10, 2005, 5:39pm UTC](https://forum.kirupa.com/t/how-to-make-an-object-repel-from-another/86146 "2005-04-10T17:39:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miketye](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@miketye](https://forum.kirupa.com/u/miketye)\
**Post date:** [April 10, 2005, 5:39pm UTC](https://forum.kirupa.com/t/how-to-make-an-object-repel-from-another/86146/1 "2005-04-10T17:39:11Z")

</div>

Hi im making a sort of tag game using hit testing, the controlling an object using keys and random motion but i have found that the random motion just takes my object into the one it is supposed to stay away from.  
Any Help would be gratefully received:-/
