Lots of game objects interacting with one wall

Hi everyone. Im really struggling with having a solid wall that is interacting with lots of game objects. I want to stop any of them going through my fence but they all keep moving through it. Any more thourough methods I can use to stop them from going through>

Hmm, if the issue is fact that sometimes they are pushed too fast by objects behind them two things comes to my mind:

  1. Maybe faster physics refresh rate would help
  2. Try setting “Bullet” option incollision object.

image

1 Like

Hi thanks for the reply! How would I make the physics refresh rate faster?

It looks like this - they stop at first but then bug through it.

Hmm, that’s definitely not related to the refresh rate then. Is the wall a continuous collision object or several smaller ones? Could there be gaps or something?
Can you share the demo?

No its one collision object with multiple shapes within it. Its a static type of game object but it seems like it can’t handle lots of sheep interacting with it.

The amount of sheeps shouldn’t really matter in this case. I would try two things in that situation then:

  1. Make the one big shape for the whole wall. It should not only work better, but also be faster to calculate.
  2. Make the collision shape a bit thicker (if is thin now).

I would make these shapes like that:

How are you moving those sheep? Are you using go.set_position? If so it is the cause.

5 Likes

I am not sure, but are the walls thick enough?

2 Likes