Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/physics/src/bullet/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuEpaPenetrationDepthSolver.h @ 1966

Last change on this file since 1966 was 1966, checked in by rgrieder, 16 years ago

Let's go for multithreaded physics!

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1
2/*
3Bullet Continuous Collision Detection and Physics Library
4Copyright (c) 2003-2006 Erwin Coumans  http://continuousphysics.com/Bullet/
5
6This software is provided 'as-is', without any express or implied warranty.
7In no event will the authors be held liable for any damages arising from the use of this software.
8Permission is granted to anyone to use this software for any purpose,
9including commercial applications, and to alter it and redistribute it freely,
10subject to the following restrictions:
11
121. 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.
132. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
143. This notice may not be removed or altered from any source distribution.
15*/
16
17#ifndef SPU_EPA_PENETRATION_DEPTH_SOLVER_H
18#define SPU_EPA_PENETRATION_DEPTH_SOLVER_H
19
20
21#include "SpuConvexPenetrationDepthSolver.h"
22
23class btStackAlloc;
24class btIDebugDraw;
25class SpuVoronoiSimplexSolver;
26
27///MinkowskiPenetrationDepthSolver implements bruteforce penetration depth estimation.
28///Implementation is based on sampling the depth using support mapping, and using GJK step to get the witness points.
29class SpuEpaPenetrationDepthSolver : public SpuConvexPenetrationDepthSolver
30{
31public:
32
33        virtual bool calcPenDepth( SpuVoronoiSimplexSolver& simplexSolver,
34                void* convexA,void* convexB,int shapeTypeA, int shapeTypeB, float marginA, float marginB,
35            btTransform& transA,const btTransform& transB,
36                        btVector3& v, btPoint3& pa, btPoint3& pb,
37                        class btIDebugDraw* debugDraw,btStackAlloc* stackAlloc,
38                        struct SpuConvexPolyhedronVertexData* convexVertexDataA,
39                        struct SpuConvexPolyhedronVertexData* convexVertexDataB
40                        ) const;
41
42
43};
44
45
46#endif //SPU_EPA_PENETRATION_DEPTH_SOLVER_H
47
Note: See TracBrowser for help on using the repository browser.