From f7a88eb379062c99a9e51832679db3df4fb6afca Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Sat, 26 Dec 2009 12:31:51 +0000 Subject: [PATCH] git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@241 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- sources/reactphysics3d/collision/NarrowPhaseSATAlgorithm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/reactphysics3d/collision/NarrowPhaseSATAlgorithm.cpp b/sources/reactphysics3d/collision/NarrowPhaseSATAlgorithm.cpp index ded94899..f21abe40 100644 --- a/sources/reactphysics3d/collision/NarrowPhaseSATAlgorithm.cpp +++ b/sources/reactphysics3d/collision/NarrowPhaseSATAlgorithm.cpp @@ -497,11 +497,11 @@ void NarrowPhaseSATAlgorithm::computeContact(const OBB* const obb1, const OBB* c // If it's a Vertex-Something contact if (nbVerticesExtremeOBB1 == 1) { // Create a new contact - contact = new Contact(obb1, obb2, normal, obb1ExtremePoints); + *contact = new Contact(obb1->getBodyPointer(), obb2->getBodyPointer(), normal, obb1ExtremePoints); } else if(nbVerticesExtremeOBB2 == 1) { // If its a Vertex-Something contact // Create a new contact - contact = new Contact(obb1, obb2, normal, obb2ExtremePoints); + *contact = new Contact(obb1->getBodyPointer(), obb2->getBodyPointer(), normal, obb2ExtremePoints); } else if (nbVerticesExtremeOBB1 == 2 && nbVerticesExtremeOBB2 == 2) { // If it's an edge-edge contact // TODO : Complete this ...