Hey everyone
I am working on a fairly large project with Box2d and I have a large amount of objects. I have walls that have 4 visible traps on them and upwards of 150 walls.
Which is around 600 objects- plus numerous other objects.
I have looked around a bit and increased the number of objects from the 512 to 1024 in the b2Settings.as file and am still getting this weird error.
Note: When I only have 2 traps activated on each wall everything works fine.
The error I get is:
I know that doesn't help many people much, but I'm hoping with the CreateProxy function in there it will help some of the advanced people narrow down the errors for me.
Thanks in advance!
I am working on a fairly large project with Box2d and I have a large amount of objects. I have walls that have 4 visible traps on them and upwards of 150 walls.
Which is around 600 objects- plus numerous other objects.
I have looked around a bit and increased the number of objects from the 512 to 1024 in the b2Settings.as file and am still getting this weird error.
Note: When I only have 2 traps activated on each wall everything works fine.
The error I get is:
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Box2D.Collision::b2BroadPhase/CreateProxy()
at Box2D.Collision.Shapes::b2Shape/CreateProxy()
at Box2D.Dynamics::b2Body/CreateShape()
at WallFactory/wallType7()
at WallFactory()
at Box2D.Collision::b2BroadPhase/CreateProxy()
at Box2D.Collision.Shapes::b2Shape/CreateProxy()
at Box2D.Dynamics::b2Body/CreateShape()
at WallFactory/wallType7()
at WallFactory()
I know that doesn't help many people much, but I'm hoping with the CreateProxy function in there it will help some of the advanced people narrow down the errors for me.
Thanks in advance!