Fixed Some Bugs

Topics: Developer Forum, User Forum
Oct 9, 2007 at 10: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:

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

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

3.
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.
Developer
Oct 24, 2007 at 5:29 PM
You can use this page to upload a patch, which one of the authors will merge:
http://www.codeplex.com/xnadevru/SourceControl/UploadPatch.aspx