hello,
i want to put a lot of static b2Body in the world, but after creating 508 b2Body i have this error :
when i create 507 b2Body, all is ok.
i want to create 6480 b2Body, if i make modification in the b2Settings, the engine can really hold this number ?
thank's
------------
it's for make something like this but with Box2D :
http://web.codeur.free.fr/divers/MainTestSansPhysique.swf
http://web.codeur.free.fr/divers/MainTestSansPhysique2.swf
i want to put a lot of static b2Body in the world, but after creating 508 b2Body i have this error :
Quote:
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
at Box2D.Collision::b2BroadPhase/CreateProxy()[C:\Program Files\_travail\xampp\htdocs\_progFlash\_flashdevelop\test jeu explosion pixel\src\Box2D\Collision\b2BroadPhase.as:151]
at Box2D.Collision.Shapes::b2Shape/CreateProxy()[C:\Program Files\_travail\xampp\htdocs\_progFlash\_flashdevelop\test jeu explosion pixel\src\Box2D\Collision\Shapes\b2Shape.as:221]
at Box2D.Dynamics::b2Body/CreateShape()[C:\Program Files\_travail\xampp\htdocs\_progFlash\_flashdevelop\test jeu explosion pixel\src\Box2D\Dynamics\b2Body.as:53]
at MainBox2d/init()[C:\Program Files\_travail\xampp\htdocs\_progFlash\_flashdevelop\test jeu explosion pixel\src\MainBox2d.as:148]
at MainBox2d()[C:\Program Files\_travail\xampp\htdocs\_progFlash\_flashdevelop\test jeu explosion pixel\src\MainBox2d.as:70]
at Box2D.Collision::b2BroadPhase/CreateProxy()[C:\Program Files\_travail\xampp\htdocs\_progFlash\_flashdevelop\test jeu explosion pixel\src\Box2D\Collision\b2BroadPhase.as:151]
at Box2D.Collision.Shapes::b2Shape/CreateProxy()[C:\Program Files\_travail\xampp\htdocs\_progFlash\_flashdevelop\test jeu explosion pixel\src\Box2D\Collision\Shapes\b2Shape.as:221]
at Box2D.Dynamics::b2Body/CreateShape()[C:\Program Files\_travail\xampp\htdocs\_progFlash\_flashdevelop\test jeu explosion pixel\src\Box2D\Dynamics\b2Body.as:53]
at MainBox2d/init()[C:\Program Files\_travail\xampp\htdocs\_progFlash\_flashdevelop\test jeu explosion pixel\src\MainBox2d.as:148]
at MainBox2d()[C:\Program Files\_travail\xampp\htdocs\_progFlash\_flashdevelop\test jeu explosion pixel\src\MainBox2d.as:70]
when i create 507 b2Body, all is ok.
i want to create 6480 b2Body, if i make modification in the b2Settings, the engine can really hold this number ?
thank's
------------
it's for make something like this but with Box2D :
http://web.codeur.free.fr/divers/MainTestSansPhysique.swf
http://web.codeur.free.fr/divers/MainTestSansPhysique2.swf