1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 21:49:56 +00:00
openmw-tes3mp/apps/openmw/mwphysics/actorconvexcallback.hpp

26 lines
757 B
C++
Raw Normal View History

#ifndef OPENMW_MWPHYSICS_ACTORCONVEXCALLBACK_H
#define OPENMW_MWPHYSICS_ACTORCONVEXCALLBACK_H
#include <BulletCollision/CollisionDispatch/btCollisionWorld.h>
class btCollisionObject;
namespace MWPhysics
{
class ActorConvexCallback : public btCollisionWorld::ClosestConvexResultCallback
{
public:
ActorConvexCallback(const btCollisionObject *me, const btVector3 &motion, btScalar minCollisionDot, const btCollisionWorld * world);
btScalar addSingleResult(btCollisionWorld::LocalConvexResult& convexResult,bool normalInWorldSpace) override;
protected:
const btCollisionObject *mMe;
const btVector3 mMotion;
const btScalar mMinCollisionDot;
const btCollisionWorld * mWorld;
};
}
#endif