git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@174 92aac97c-a6ce-11dd-a772-7fcde58d38e6
This commit is contained in:
parent
60132edd97
commit
de86ab541a
40
sources/reactphysics3d/collision/SeparatingAxisAABB.cpp
Normal file
40
sources/reactphysics3d/collision/SeparatingAxisAABB.cpp
Normal file
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
// 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
|
||||||
|
}
|
||||||
|
|
43
sources/reactphysics3d/collision/SeparatingAxisAABB.h
Normal file
43
sources/reactphysics3d/collision/SeparatingAxisAABB.h
Normal file
|
@ -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 <http://www.gnu.org/licenses/>. *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user