# Collision responses for specific collision objects

**URL:** <https://forum.defold.com/t/collision-responses-for-specific-collision-objects/79496>\
**Category:** Questions\
**Created:** [January 18, 2025, 1:53am UTC](https://forum.defold.com/t/collision-responses-for-specific-collision-objects/79496 "2025-01-18T01:53:13Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [January 20, 2025, 5:35am UTC](https://forum.defold.com/t/collision-responses-for-specific-collision-objects/79496/5 "2025-01-20T05:35:48Z")

</div>

Do you have collision objects set correctly? E.g. does `Mask` property of fence matches `Group` of sheep and vice versa? Put a simple print inside your code and check if collision happens 😉

> **[Collision objects in Defold](https://defold.com/manuals/physics-objects/)**
>
> A collision object is a component you use to give a game object physical behaviour. A collision object has physical properties and a spatial shape.

Ahh, yes, I see you also made another post with a video, the approach is problematic:

> [@Lots of game objects interacting with one wall](https://forum.defold.com/t/lots-of-game-objects-interacting-with-one-wall/79501/8):
>
> How are you moving those sheep? Are you using go.set\_position? If so it is the cause.

Print out the values you are setting (or use debugging to investigate them)

---

_[View the full topic](https://forum.defold.com/t/collision-responses-for-specific-collision-objects/79496)._
