Timeline for IndexOutOfRangeException on World.Step after enabling/disabling a Farseer physics body?
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 21, 2021 at 23:00 | history | edited | Pikalek | CC BY-SA 4.0 | updated project URL as codeplex is going offline soon, added markdown to code in text |
| Feb 3, 2012 at 18:15 | history | bounty awarded | WilHall | ||
| Jan 30, 2012 at 16:44 | vote | accept | WilHall | ||
| Jan 30, 2012 at 16:43 | comment | added | WilHall | I tried your suggestion with a newer, updated version of my above code - only disabling the body after accessing any attributes needed - and it worked. The updated code places the bodies in different collision groups. If I try the same thing without them, the error occurs. The IndexOutOfRangeException probably refers to the world's ContactList changing length because the bodies were colliding when disabled - where setting a different collision group on the body first appears to fix the problem. | |
| Jan 30, 2012 at 4:36 | comment | added | Suds | Added a potential solution. | |
| Jan 30, 2012 at 4:33 | history | edited | Suds | CC BY-SA 3.0 | Added actual answer below EDIT tag |
| Jan 30, 2012 at 3:58 | comment | added | David Gouveia | I think World.Step() is a method from the Farseer Physics Engine, probably from this class. | |
| Jan 30, 2012 at 3:39 | history | answered | Suds | CC BY-SA 3.0 |