Page 1 of 1

Detect stuck dynamic body

Posted: Wed May 11, 2016 7:55 pm
Hi all, Anyone know best way to detect when dynamic bodies are stuck inside/between static bodies?? Please see screenshot. Any hints greatly appreciated.


Re: Detect stuck dynamic body

Posted: Thu May 12, 2016 9:59 am
by iforce2d
This is very difficult, to the point where I probably would not bother. Better to spend your effort preventing this situation from occurring in the first place, for three reasons:
1. it's easier
2. it should improve player experience to not have things getting stuck to begin with
3. it avoids the question about where to move the stuck body once it is detected