Blender V2.61 - r43446
|
00001 /* 00002 * Box-Box collision detection re-distributed under the ZLib license with permission from Russell L. Smith 00003 * Original version is from Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. 00004 * All rights reserved. Email: russ@q12.org Web: www.q12.org 00005 00006 Bullet Continuous Collision Detection and Physics Library 00007 Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ 00008 00009 This software is provided 'as-is', without any express or implied warranty. 00010 In no event will the authors be held liable for any damages arising from the use of this software. 00011 Permission is granted to anyone to use this software for any purpose, 00012 including commercial applications, and to alter it and redistribute it freely, 00013 subject to the following restrictions: 00014 00015 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 00016 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 00017 3. This notice may not be removed or altered from any source distribution. 00018 */ 00019 #ifndef BOX_BOX_DETECTOR_H 00020 #define BOX_BOX_DETECTOR_H 00021 00022 00023 class btBoxShape; 00024 #include "BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h" 00025 00026 00029 struct btBoxBoxDetector : public btDiscreteCollisionDetectorInterface 00030 { 00031 btBoxShape* m_box1; 00032 btBoxShape* m_box2; 00033 00034 public: 00035 00036 btBoxBoxDetector(btBoxShape* box1,btBoxShape* box2); 00037 00038 virtual ~btBoxBoxDetector() {}; 00039 00040 virtual void getClosestPoints(const ClosestPointInput& input,Result& output,class btIDebugDraw* debugDraw,bool swapResults=false); 00041 00042 }; 00043 00044 #endif //BT_BOX_BOX_DETECTOR_H