Browse files

fixed collidingWith i think

  • Loading branch information...
1 parent 0d3c64e commit 0524adb9ace5e4af583a7f9472148e90ae509ad2 @termhn committed Jul 2, 2011
View
BIN .DS_Store
Binary file not shown.
View
BIN Bullet Wrapping/.DS_Store
Binary file not shown.
View
10 Bullet Wrapping/Wrapper/CC3PhysicsWorld.mm
@@ -141,13 +141,13 @@ - (void) synchTransformation {
object.node.quaternion = quaternion;
}
int numManifolds = _discreteDynamicsWorld->getDispatcher()->getNumManifolds();
- for (int i=0;i<numManifolds;i++)
+ NSMutableArray *_thisCollidingObjects = [[[NSMutableArray alloc] init] autorelease];
+ for (int i=0;i<numManifolds;i++)
{
- NSMutableArray *_thisCollidingObjects = [[[NSMutableArray alloc] init] autorelease];
btPersistentManifold* contactManifold = _discreteDynamicsWorld->getDispatcher()->getManifoldByIndexInternal(i);
- btCollisionObject* obA = static_cast<btCollisionObject*>(contactManifold->getBody0());
- btCollisionObject* obB = static_cast<btCollisionObject*>(contactManifold->getBody1());
- for (CC3PhysicsObject3D *object in _physicsObjects) {
+ btRigidBody* obA = static_cast<btRigidBody*>(contactManifold->getBody0());
+ btRigidBody* obB = static_cast<btRigidBody*>(contactManifold->getBody1());
+ for (CC3PhysicsObject3D * object in _physicsObjects) {
if (object.rigidBody == obA) {
_collisionObject1 = object;
if (object.colliding) {

0 comments on commit 0524adb

Please sign in to comment.