mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 12:01:51 +00:00
27 lines
768 B
C++
27 lines
768 B
C++
#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
|