2021-01-07 10:02:53 +00:00
|
|
|
#ifndef OPENMW_MWPHYSICS_ACTORCONVEXCALLBACK_H
|
|
|
|
#define OPENMW_MWPHYSICS_ACTORCONVEXCALLBACK_H
|
2020-03-30 21:25:33 +00:00
|
|
|
|
|
|
|
#include <BulletCollision/CollisionDispatch/btCollisionWorld.h>
|
|
|
|
|
|
|
|
class btCollisionObject;
|
|
|
|
|
|
|
|
namespace MWPhysics
|
|
|
|
{
|
2021-01-07 10:02:53 +00:00
|
|
|
class ActorConvexCallback : public btCollisionWorld::ClosestConvexResultCallback
|
2020-03-30 21:25:33 +00:00
|
|
|
{
|
|
|
|
public:
|
2021-01-07 10:02:53 +00:00
|
|
|
ActorConvexCallback(const btCollisionObject* me, const btVector3& motion, btScalar minCollisionDot,
|
|
|
|
const btCollisionWorld* world);
|
2020-03-30 21:25:33 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
btScalar addSingleResult(btCollisionWorld::LocalConvexResult& convexResult, bool normalInWorldSpace) override;
|
2020-03-30 21:25:33 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
const btCollisionObject* mMe;
|
|
|
|
const btVector3 mMotion;
|
|
|
|
const btScalar mMinCollisionDot;
|
2020-12-27 22:16:11 +00:00
|
|
|
const btCollisionWorld* mWorld;
|
2020-03-30 21:25:33 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|