RangeError: Error #1005: Array index is not a positive integer (-1).
at Error$/throwError()
at Array()
at Box2D.Dynamics::b2Island()
at Box2D.Dynamics::b2World/Solve()
at Box2D.Dynamics::b2World/Step()
At this line:
m_contacts = new Array(contactCapacity);
I've been looking through the forums and have read that the RangeError is thrown when bodies are destroyed that have already been destroyed. I am not destroying bodies and I still get that error. I have found no way to produce that error consistently so I am having a really hard time trying to solve it. Are there any other reasons why this error might occur?
I am using 2.0.2. Thank you.
at Error$/throwError()
at Array()
at Box2D.Dynamics::b2Island()
at Box2D.Dynamics::b2World/Solve()
at Box2D.Dynamics::b2World/Step()
At this line:
m_contacts = new Array(contactCapacity);
I've been looking through the forums and have read that the RangeError is thrown when bodies are destroyed that have already been destroyed. I am not destroying bodies and I still get that error. I have found no way to produce that error consistently so I am having a really hard time trying to solve it. Are there any other reasons why this error might occur?
I am using 2.0.2. Thank you.