This project is read-only.

Fixed Some Bugs

Topics: Developer Forum, User Forum
Oct 9, 2007 at 11:35 AM
I 've been working with bullet XNA port, and I'm having some troubles.
When I try to create some Compoundshape, the engine doesn't work because of an assert error. I've fixed this bugs doing this:

Class : CompoundCollisionAlgorithms.cs
Metode : CompoundCollisionAlgorithm
Old: _childCollisionAlgorithmsi=collisionAlgorithmConstructionInfo.Dispatcher.FindAlgorithm(collisionObject, otherObject);
New: _childCollisionAlgorithms.Add(collisionAlgorithmConstructionInfo.Dispatcher.FindAlgorithm(collisionObject, otherObject));

Class : CompoundCollisionAlgorithms.cs
Metode : ProcessCollision
Line: 74
Old: CollisionObject collisionObject = _isSwapped ? bodyB : bodyB ;
New: CollisionObject collisionObject = _isSwapped ? bodyB : bodyA;

Class : CompoundCollisionAlgorithms.cs
Metode : ProcessCollision
Line: 88
Old: CompoundShape childShape = compoundShape.GetChildShape(i) as CompoundShape;
New: CollisionShape childShape = compoundShape.GetChildShape(i);

The purpose of my work is to implement the raycastvehicle.cs that's is not coded yet by the authors.
The result is not succesful, because I'm not well at physics.
But if anyone is interested, I can post the source.
Oct 24, 2007 at 6:29 PM
You can use this page to upload a patch, which one of the authors will merge: