Closed oli414 closed 8 years ago
When I try to create multiple bodies (circles and/or boxes) which overlap the positions are set to NaN as soon as world.step() is called. The bodies have a mass of 5 and are dynamic.
In very rare occasions it does actually work.
The issue on stackexchange (including code sample): http://gamedev.stackexchange.com/questions/111415/p2-js-body-position-is-nan-when-spawned-inside-of-each-other?noredirect=1#comment194380_111415
My fault. The first time world.step(dt) was called dt was zero.
When I try to create multiple bodies (circles and/or boxes) which overlap the positions are set to NaN as soon as world.step() is called. The bodies have a mass of 5 and are dynamic.
In very rare occasions it does actually work.
The issue on stackexchange (including code sample): http://gamedev.stackexchange.com/questions/111415/p2-js-body-position-is-nan-when-spawned-inside-of-each-other?noredirect=1#comment194380_111415