Bullet Collision Detection & Physics Library: btBoxBoxDetector.h Source File

Bullet Collision Detection & Physics Library

btBoxBoxDetector.h
Go to the documentation of this file.
1/*
2 * Box-Box collision detection re-distributed under the ZLib license with permission from Russell L. Smith
3 * Original version is from Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith.
4 * All rights reserved. Email: russ@q12.org Web: www.q12.org
5
6Bullet Continuous Collision Detection and Physics Library
7Copyright (c) 2003-2006 Erwin Coumans https://bulletphysics.org
8
9This software is provided 'as-is', without any express or implied warranty.
10In no event will the authors be held liable for any damages arising from the use of this software.
11Permission is granted to anyone to use this software for any purpose,
12including commercial applications, and to alter it and redistribute it freely,
13subject to the following restrictions:
14
151. 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.
162. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
173. This notice may not be removed or altered from any source distribution.
18*/
19#ifndef BT_BOX_BOX_DETECTOR_H
20#define BT_BOX_BOX_DETECTOR_H
21
22class btBoxShape;
23#include "BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h"
24
27 struct btBoxBoxDetector : public btDiscreteCollisionDetectorInterface
28{
29 const btBoxShape* m_box1;
30 const btBoxShape* m_box2;
31
32public:
33 btBoxBoxDetector(const btBoxShape* box1, const btBoxShape* box2);
34
35 virtual ~btBoxBoxDetector(){};
36
37 virtual void getClosestPoints(const ClosestPointInput& input, Result& output, class btIDebugDraw* debugDraw, bool swapResults = false);
38};
39
40#endif //BT_BOX_BOX_DETECTOR_H
btDiscreteCollisionDetectorInterface.h
output
#define output
btBoxShape
The btBoxShape is a box primitive around the origin, its sides axis aligned with length specified by ...
Definition btBoxShape.h:28
btIDebugDraw
The btIDebugDraw interface class allows hooking up a debug renderer to visually debug simulations.
Definition btIDebugDraw.h:27
btBoxBoxDetector::m_box1
const btBoxShape * m_box1
Definition btBoxBoxDetector.h:29
btBoxBoxDetector::~btBoxBoxDetector
virtual ~btBoxBoxDetector()
Definition btBoxBoxDetector.h:35
btBoxBoxDetector::m_box2
const btBoxShape * m_box2
Definition btBoxBoxDetector.h:30
btBoxBoxDetector::getClosestPoints
virtual void getClosestPoints(const ClosestPointInput &input, Result &output, class btIDebugDraw *debugDraw, bool swapResults=false)
Definition btBoxBoxDetector.cpp:730
btBoxBoxDetector::btBoxBoxDetector
btBoxBoxDetector(const btBoxShape *box1, const btBoxShape *box2)
ODE box-box collision detection is adapted to work with Bullet.
Definition btBoxBoxDetector.cpp:27
btDiscreteCollisionDetectorInterface
This interface is made to be used by an iterative approach to do TimeOfImpact calculations This inter...
Definition btDiscreteCollisionDetectorInterface.h:28