Changeset 2430 for code/branches/physics/src/bullet/BulletCollision/CollisionDispatch/SphereTriangleDetector.h
- Timestamp:
- Dec 13, 2008, 11:45:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/bullet/BulletCollision/CollisionDispatch/SphereTriangleDetector.h
r2192 r2430 18 18 19 19 #include "BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h" 20 #include "LinearMath/btPoint3.h" 20 21 21 22 22 … … 31 31 virtual void getClosestPoints(const ClosestPointInput& input,Result& output,class btIDebugDraw* debugDraw,bool swapResults=false); 32 32 33 SphereTriangleDetector(btSphereShape* sphere,btTriangleShape* triangle );33 SphereTriangleDetector(btSphereShape* sphere,btTriangleShape* triangle, btScalar contactBreakingThreshold); 34 34 35 35 virtual ~SphereTriangleDetector() {}; … … 37 37 private: 38 38 39 bool collide(const btVector3& sphereCenter,btVector3 &point, btVector3& resultNormal, btScalar& depth, btScalar &timeOfImpact );39 bool collide(const btVector3& sphereCenter,btVector3 &point, btVector3& resultNormal, btScalar& depth, btScalar &timeOfImpact, btScalar contactBreakingThreshold); 40 40 bool pointInTriangle(const btVector3 vertices[], const btVector3 &normal, btVector3 *p ); 41 41 bool facecontains(const btVector3 &p,const btVector3* vertices,btVector3& normal); … … 43 43 btSphereShape* m_sphere; 44 44 btTriangleShape* m_triangle; 45 45 btScalar m_contactBreakingThreshold; 46 46 47 47 };
Note: See TracChangeset
for help on using the changeset viewer.