# Question on CollisionDetection sample app in Corona SDK

**URL:** <https://forums.solar2d.com/t/question-on-collisiondetection-sample-app-in-corona-sdk/328226>\
**Category:** Newbie Questions\
**Created:** [September 1, 2014, 7:46pm UTC](https://forums.solar2d.com/t/question-on-collisiondetection-sample-app-in-corona-sdk/328226 "2014-09-01T19:46:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![helloworld2013d](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/h/53a042/32.png) [@helloworld2013d](https://forums.solar2d.com/u/helloworld2013d)\
**Post date:** [September 1, 2014, 7:46pm UTC](https://forums.solar2d.com/t/question-on-collisiondetection-sample-app-in-corona-sdk/328226/1 "2014-09-01T19:46:26Z")

</div>

I just saw the sample app with 2 crates the sky and the grass, the one that comes with corona, to teach people how to do collision.

I read the code I have it in front of me, and I have no idea how to make it work on storyboard.

– the event is very “noisy” ??

–"preCollision: " … self.myName … ??

– event.force ??

and so on…

This code is for someone that already know a lot of code. (I think)

I am very beginner, is there out there somewhere something more simple and easier?

instead of pre-collision, porst-collision, collision and all that

one simple app, but again, in storyboard, that go from one lua file to another

and makes only collision, that’s it, simple

once I get that, maybe I can try pre-collision

and then after a year maybe if I’m ready post-collision

little by little, like a tiny little baby

I have many post of that, on no solution yet.

Thanks for all your help

---

<div class="post-metadata">

**Author:** ![helloworld2013d](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/h/53a042/32.png) [@helloworld2013d](https://forums.solar2d.com/u/helloworld2013d)\
**Post date:** [September 11, 2014, 8:40pm UTC](https://forums.solar2d.com/t/question-on-collisiondetection-sample-app-in-corona-sdk/328226/2 "2014-09-11T20:40:26Z")

</div>

A simple function for collision

```
local function onLocalCollision( event ) &nbsp;&nbsp;&nbsp; if ( event.phase == "began" ) then &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;print("just touch") &nbsp;&nbsp;&nbsp; elseif ( event.phase == "ended" ) then &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print("finish touched") &nbsp;&nbsp;&nbsp; end end myCircle.collision = onLocalCollision myCircle:addEventListener( "collision", myCircle ) redCircle.collision = onLocalCollision redCircle:addEventListener( "collision", redCircle )

```

But I see nothing in the terminal. what is wrong

thanks for your help

---

<div class="post-metadata">

**Author:** ![helloworld2013d](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/h/53a042/32.png) [@helloworld2013d](https://forums.solar2d.com/u/helloworld2013d)\
**Post date:** [September 11, 2014, 8:40pm UTC](https://forums.solar2d.com/t/question-on-collisiondetection-sample-app-in-corona-sdk/328226/3 "2014-09-11T20:40:26Z")

</div>

A simple function for collision

```
local function onLocalCollision( event ) &nbsp;&nbsp;&nbsp; if ( event.phase == "began" ) then &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;print("just touch") &nbsp;&nbsp;&nbsp; elseif ( event.phase == "ended" ) then &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print("finish touched") &nbsp;&nbsp;&nbsp; end end myCircle.collision = onLocalCollision myCircle:addEventListener( "collision", myCircle ) redCircle.collision = onLocalCollision redCircle:addEventListener( "collision", redCircle )

```

But I see nothing in the terminal. what is wrong

thanks for your help
