Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MinkowskiPenetrationDepthSolver.h « NarrowPhaseCollision « Bullet « bullet « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fb40223b1d65c2bd185c7bc266998b681d05ba82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

#ifndef MINKOWSKI_PENETRATION_DEPTH_SOLVER_H
#define MINKOWSKI_PENETRATION_DEPTH_SOLVER_H

#include "ConvexPenetrationDepthSolver.h"

///MinkowskiPenetrationDepthSolver implements bruteforce penetration depth estimation.
///Implementation is based on sampling the depth using support mapping, and using GJK step to get the witness points.
class MinkowskiPenetrationDepthSolver : public ConvexPenetrationDepthSolver
{
public:

	virtual bool CalcPenDepth( SimplexSolverInterface& simplexSolver,
	ConvexShape* convexA,ConvexShape* convexB,
				const SimdTransform& transA,const SimdTransform& transB,
			SimdVector3& v, SimdPoint3& pa, SimdPoint3& pb);

};

#endif //MINKOWSKI_PENETRATION_DEPTH_SOLVER_H