# STUDIO: Can't get collision working :(

**URL:** <https://forum.8thwall.com/t/studio-cant-get-collision-working/3498>\
**Category:** Technical Support\
**Created:** [November 7, 2024, 7:51pm UTC](https://forum.8thwall.com/t/studio-cant-get-collision-working/3498 "2024-11-07T19:51:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Guilmard](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@Sam\_Guilmard](https://forum.8thwall.com/u/Sam_Guilmard)\
**Post date:** [November 7, 2024, 7:51pm UTC](https://forum.8thwall.com/t/studio-cant-get-collision-working/3498/1 "2024-11-07T19:51:53Z")

</div>

Hi there,

I have an issue that I feel should be fairly simple - in my game I have a number of balls (all with physics colliders) and a box also with a physics collider. I need to detect when the balls collide with the box. Both colliders are set to ‘event only’ - on the box I have a script called “ColliderController” and in the ADD section I have added an event listener.

add: (world, component) =\> {  
// Runs when the component is added to the world.  
function handleCollision() {  
console.log(‘hello’)  
}

```
world.events.addListener(component.eid, ecs.physics.COLLISION_START_EVENT, handleCollision)

```

},

No matter what combination I try - I can’t get it to work! Any help would be greatly appreciated 🙂

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [November 7, 2024, 9:14pm UTC](https://forum.8thwall.com/t/studio-cant-get-collision-working/3498/2 "2024-11-07T21:14:43Z")

</div>

When an entity is set to “event only,” it acts as a trigger, and triggers interacting with each other do not generate physics collision events.
