Squish

Bottleneck and squeeze sheep behavior [THIS FEATURE IS DISCONTINUED AND WILL NOT GO INTO THE FINAL GAME]
Every sheep has two colliders: an outer and an inner collider. The outer is flexible will give in on collision with other objects (works like soft bodies). The inner is static and work like a regular collider, it does not nudge.

If sheep find itself forced together in a tight space, the outer collider will give in, resulting in the sheep moving with reduced speed, relative to the amount of given in by the outer collider.

The sheep’s outer collider will not give in unless there is no open space on both side of the sheep. If there is open space on one side of the sheep, the sheep will simply move to the side to avoid being squeezed. Therefore, when a sheep is in a tight spot, the sheep will try to even the pressure out so there is an equal amount of pressure on all sides. The outer collider give-in-threshold must be adjustable.

If, for some reason, there is much more pressure from one side than another, the sheep’s speed is calculated based on where the pressure is the most.