diff --git a/sources/reactphysics3d/body/BoundingVolume.cpp b/sources/reactphysics3d/body/BoundingVolume.cpp new file mode 100644 index 00000000..cd43b915 --- /dev/null +++ b/sources/reactphysics3d/body/BoundingVolume.cpp @@ -0,0 +1,34 @@ +/**************************************************************************** +* 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 "BoundingVolume.h" + +// We want to use the ReactPhysics3D namespace +using namespace reactphysics3d; + +// Constructor +BoundingVolume::BoundingVolume() { + +} + +// Destructor +BoundingVolume::~BoundingVolume() { + +} diff --git a/sources/reactphysics3d/body/BoundingVolume.h b/sources/reactphysics3d/body/BoundingVolume.h new file mode 100644 index 00000000..b2c34dfd --- /dev/null +++ b/sources/reactphysics3d/body/BoundingVolume.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 BOUNDING_VOLUME_H +#define BOUNDING_VOLUME_H + +// ReactPhysics3D namespace +namespace reactphysics3d { + +/* ------------------------------------------------------------------- + Class BoundingVolume : + This class represents the volume that contains a rigid body. + This volume will be used to compute the collisions with others + bodies. + ------------------------------------------------------------------- +*/ +class BoundingVolume { + private : + + public : + BoundingVolume(); // Constructor + virtual ~BoundingVolume(); // Destructor +}; + +} // End of the ReactPhysics3D namespace + +#endif diff --git a/sources/reactphysics3d/body/OBB.cpp b/sources/reactphysics3d/body/OBB.cpp new file mode 100644 index 00000000..4e452e9d --- /dev/null +++ b/sources/reactphysics3d/body/OBB.cpp @@ -0,0 +1,34 @@ +/**************************************************************************** +* 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 "OBB.h" + +// We want to use the ReactPhysics3D namespace +using namespace reactphysics3d; + +// Constructor +OBB::OBB() { + +} + +// Destructor +OBB::~OBB() { + +} diff --git a/sources/reactphysics3d/body/OBB.h b/sources/reactphysics3d/body/OBB.h new file mode 100644 index 00000000..29ac9742 --- /dev/null +++ b/sources/reactphysics3d/body/OBB.h @@ -0,0 +1,42 @@ +/**************************************************************************** +* 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 OBB_H +#define OBB_H + +// ReactPhysics3D namespace +namespace reactphysics3d { + +/* ------------------------------------------------------------------- + Class OBB : + This class represents a bounding volume of type "Oriented Bounding + Box". It's a box that has a given orientation is space. + ------------------------------------------------------------------- +*/ +class OBB : public BoundingVolume { + private : + + public : + OBB(); // Constructor + virtual ~OBB(); // Destructor +}; + +}; // End of the ReactPhysics3D namespace + +#endif