From de86ab541ae8afce0a7ab55b754020d02a5457ea Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Wed, 8 Jul 2009 16:36:18 +0000 Subject: [PATCH] git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@174 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- .../collision/SeparatingAxisAABB.cpp | 40 +++++++++++++++++ .../collision/SeparatingAxisAABB.h | 43 +++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 sources/reactphysics3d/collision/SeparatingAxisAABB.cpp create mode 100644 sources/reactphysics3d/collision/SeparatingAxisAABB.h diff --git a/sources/reactphysics3d/collision/SeparatingAxisAABB.cpp b/sources/reactphysics3d/collision/SeparatingAxisAABB.cpp new file mode 100644 index 00000000..fda69dc4 --- /dev/null +++ b/sources/reactphysics3d/collision/SeparatingAxisAABB.cpp @@ -0,0 +1,40 @@ +/*************************************************************************** +* Copyright (C) 2009 Daniel Chappuis * +**************************************************************************** +* This file is part of ReactPhysics3D. * +* * +* ReactPhysics3D is free software: you can redistribute it and/or modify * +* it under the terms of the GNU Lesser General Public License as published * +* by the Free Software Foundation, either version 3 of the License, or * +* (at your option) any later version. * +* * +* ReactPhysics3D is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU Lesser General Public License for more details. * +* * +* You should have received a copy of the GNU Lesser General Public License * +* along with ReactPhysics3D. If not, see . * +***************************************************************************/ + +// Libraries +#include "SeparatingAxisAABB.h" + +// We want to use the ReactPhysics3D namespace +using namespace reactphysics3d; + +// Constructor +SeparatingAxisAABB::SeparatingAxisAABB() { + +} + +// Destructor +SeparatingAxisAABB::~SeparatingAxisAABB() { + +} + +// Return true if the two AABB of the bodies intersect +bool SeparatingAxisAABB::testCollisionPair(const BoundingVolume& boundingVolume1, const BoundingVolume& boundingVolume2) { + // TODO : Implement this method +} + diff --git a/sources/reactphysics3d/collision/SeparatingAxisAABB.h b/sources/reactphysics3d/collision/SeparatingAxisAABB.h new file mode 100644 index 00000000..7c9a6ab5 --- /dev/null +++ b/sources/reactphysics3d/collision/SeparatingAxisAABB.h @@ -0,0 +1,43 @@ +/*************************************************************************** +* Copyright (C) 2009 Daniel Chappuis * +**************************************************************************** +* This file is part of ReactPhysics3D. * +* * +* ReactPhysics3D is free software: you can redistribute it and/or modify * +* it under the terms of the GNU Lesser General Public License as published * +* by the Free Software Foundation, either version 3 of the License, or * +* (at your option) any later version. * +* * +* ReactPhysics3D is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU Lesser General Public License for more details. * +* * +* You should have received a copy of the GNU Lesser General Public License * +* along with ReactPhysics3D. If not, see . * +***************************************************************************/ + +#ifndef SEPARATINGAXISAABB_H +#define SEPARATINGAXISAABB_H + +// Libraries +#include "BroadPhaseAlgorithm.h" +#include "../constraint/Contact.h" + +// ReactPhysics3D namespace +namespace reactphysics3d { + +class SeparatingAxisAABB : public BroadPhaseAlgorithm { + private : + + public : + SeparatingAxisAABB(); // Constructor + ~SeparatingAxisAABB(); // Destructor + + virtual bool testCollisionPair(const BoundingVolume& boundingVolume1, const BoundingVolume& boundingVolume2); // Return true if the two AABB of the bodies intersect +}; + +} // End of the ReactPhysics3D namespace + +#endif +