I create a shape based on the data of a 3D model. Basically I read the coords of the vertices of every triangle in the model (it's a plane and there are no overlapping triangles) and i use them to add shapes to a body that I'll use later as a wall.
While doing this, i encounter in this problem:
I can't really understand what the problem is, but i've noticed that the value on m_freePair (in the AddPair method of the b2PairManager class) becomes 65535 and than it can't find the appropriate object in the m_pairs array.
The problem is that i'm adding too many shapes? or is something more subtle?
edit: forgot to mention that the Box2D version is the one modified by Boris to work with his b2BuoyancyController
While doing this, i encounter in this problem:
Quote:
TypeError: Error #1009: Impossibile accedere a una proprietà o a un metodo di un riferimento oggetto null.
at Box2D.Collision::b2PairManager/AddPair()[..\libs\Box2D\Collision\b2PairManager.as:251]
at Box2D.Collision::b2PairManager/AddBufferedPair()[..\libs\Box2D\Collision\b2PairManager.as:94]
at Box2D.Collision::b2BroadPhase/CreateProxy()[..\libs\Box2D\Collision\b2BroadPhase.as:274]
at Box2D.Collision.Shapes::b2Shape/CreateProxy()[..\libs\Box2D\Collision\Shapes\b2Shape.as:229]
at Box2D.Dynamics::b2Body/CreateShape()[..\libs\Box2D\Dynamics\b2Body.as:53]
at Box2D.Collision::b2PairManager/AddPair()[..\libs\Box2D\Collision\b2PairManager.as:251]
at Box2D.Collision::b2PairManager/AddBufferedPair()[..\libs\Box2D\Collision\b2PairManager.as:94]
at Box2D.Collision::b2BroadPhase/CreateProxy()[..\libs\Box2D\Collision\b2BroadPhase.as:274]
at Box2D.Collision.Shapes::b2Shape/CreateProxy()[..\libs\Box2D\Collision\Shapes\b2Shape.as:229]
at Box2D.Dynamics::b2Body/CreateShape()[..\libs\Box2D\Dynamics\b2Body.as:53]
I can't really understand what the problem is, but i've noticed that the value on m_freePair (in the AddPair method of the b2PairManager class) becomes 65535 and than it can't find the appropriate object in the m_pairs array.
The problem is that i'm adding too many shapes? or is something more subtle?
edit: forgot to mention that the Box2D version is the one modified by Boris to work with his b2BuoyancyController