1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 22:19:54 +00:00
openmw-tes3mp/apps/openmw/mwphysics/contacttestresultcallback.hpp

31 lines
868 B
C++
Raw Normal View History

2020-03-30 18:49:47 +00:00
#ifndef OPENMW_MWPHYSICS_CONTACTTESTRESULTCALLBACK_H
#define OPENMW_MWPHYSICS_CONTACTTESTRESULTCALLBACK_H
#include <vector>
#include <BulletCollision/CollisionDispatch/btCollisionWorld.h>
#include "physicssystem.hpp"
2020-03-30 18:49:47 +00:00
class btCollisionObject;
struct btCollisionObjectWrapper;
2020-03-30 18:49:47 +00:00
namespace MWPhysics
{
class ContactTestResultCallback : public btCollisionWorld::ContactResultCallback
{
const btCollisionObject* mTestedAgainst;
public:
ContactTestResultCallback(const btCollisionObject* testedAgainst);
btScalar addSingleResult(btManifoldPoint& cp,
2020-03-30 18:49:47 +00:00
const btCollisionObjectWrapper* col0Wrap,int partId0,int index0,
const btCollisionObjectWrapper* col1Wrap,int partId1,int index1) override;
2020-03-30 18:49:47 +00:00
std::vector<ContactPoint> mResult;
2020-03-30 18:49:47 +00:00
};
}
#endif