# Hitting an object

**URL:** https://forum.kirupa.com/t/hitting-an-object/321509
**Category:** Uncategorized
**Created:** [April 21, 2011, 1:09pm UTC](https://forum.kirupa.com/t/hitting-an-object/321509 "2011-04-21T13:09:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nhubbell](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nhubbell](https://forum.kirupa.com/u/nhubbell)
#### Post date: [April 21, 2011, 1:09pm UTC](https://forum.kirupa.com/t/hitting-an-object/321509/1 "2011-04-21T13:09:30Z")

</div>

I am making a simple game where you drop a ball and if it hits a moving object something happens. Not sure the correct approach. Do you try to match the x,y points and if they line up you trigger the event?
