Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2008, 11:45:51 PM (17 years ago)
Author:
rgrieder
Message:

Updated to Bullet 2.73 (first part).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/bullet/BulletCollision/CollisionDispatch/SphereTriangleDetector.h

    r2192 r2430  
    1818
    1919#include "BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h"
    20 #include "LinearMath/btPoint3.h"
     20
    2121
    2222
     
    3131        virtual void    getClosestPoints(const ClosestPointInput& input,Result& output,class btIDebugDraw* debugDraw,bool swapResults=false);
    3232
    33         SphereTriangleDetector(btSphereShape* sphere,btTriangleShape* triangle);
     33        SphereTriangleDetector(btSphereShape* sphere,btTriangleShape* triangle, btScalar contactBreakingThreshold);
    3434
    3535        virtual ~SphereTriangleDetector() {};
     
    3737private:
    3838
    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);
    4040        bool pointInTriangle(const btVector3 vertices[], const btVector3 &normal, btVector3 *p );
    4141        bool facecontains(const btVector3 &p,const btVector3* vertices,btVector3& normal);
     
    4343        btSphereShape* m_sphere;
    4444        btTriangleShape* m_triangle;
    45 
     45        btScalar        m_contactBreakingThreshold;
    4646       
    4747};
Note: See TracChangeset for help on using the changeset viewer.