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:
- Maybe faster physics refresh rate would help
- Try setting “Bullet” option incollision object.
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:
- Make the one big shape for the whole wall. It should not only work better, but also be faster to calculate.
- 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.
I am not sure, but are the walls thick enough?