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

Bullet Collision Detection & Physics Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

btGjkCollisionDescription.h
Go to the documentation of this file.
1/*
2Bullet Continuous Collision Detection and Physics Library
3Copyright (c) 2003-2014 Erwin Coumans http://bulletphysics.org
4
5This software is provided 'as-is', without any express or implied warranty.
6In no event will the authors be held liable for any damages arising from the use of this software.
7Permission is granted to anyone to use this software for any purpose,
8including commercial applications, and to alter it and redistribute it freely,
9subject to the following restrictions:
10
111. 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.
122. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
133. This notice may not be removed or altered from any source distribution.
14*/
15
16#ifndef GJK_COLLISION_DESCRIPTION_H
17#define GJK_COLLISION_DESCRIPTION_H
18
19#include "LinearMath/btVector3.h"
20
21 struct btGjkCollisionDescription
22{
23 btVector3 m_firstDir;
24 int m_maxGjkIterations;
25 btScalar m_maximumDistanceSquared;
26 btScalar m_gjkRelError2;
27 btGjkCollisionDescription()
28 : m_firstDir(0, 1, 0),
29 m_maxGjkIterations(1000),
30 m_maximumDistanceSquared(1e30f),
31 m_gjkRelError2(1.0e-6)
32 {
33 }
34 virtual ~btGjkCollisionDescription()
35 {
36 }
37};
38
39#endif //GJK_COLLISION_DESCRIPTION_H
btScalar
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
Definition btScalar.h:314
btVector3.h
btVector3
btVector3 can be used to represent 3D points and vectors.
Definition btVector3.h:82
btGjkCollisionDescription
Definition btGjkCollisionDescription.h:22
btGjkCollisionDescription::m_maxGjkIterations
int m_maxGjkIterations
Definition btGjkCollisionDescription.h:24
btGjkCollisionDescription::m_firstDir
btVector3 m_firstDir
Definition btGjkCollisionDescription.h:23
btGjkCollisionDescription::m_maximumDistanceSquared
btScalar m_maximumDistanceSquared
Definition btGjkCollisionDescription.h:25
btGjkCollisionDescription::m_gjkRelError2
btScalar m_gjkRelError2
Definition btGjkCollisionDescription.h:26
btGjkCollisionDescription::~btGjkCollisionDescription
virtual ~btGjkCollisionDescription()
Definition btGjkCollisionDescription.h:34
btGjkCollisionDescription::btGjkCollisionDescription
btGjkCollisionDescription()
Definition btGjkCollisionDescription.h:27