mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 22:19:54 +00:00
26 lines
690 B
C++
26 lines
690 B
C++
|
#ifndef OPENMW_MWPHYSICS_PROJECTILECONVEXCALLBACK_H
|
||
|
#define OPENMW_MWPHYSICS_PROJECTILECONVEXCALLBACK_H
|
||
|
|
||
|
#include <BulletCollision/CollisionDispatch/btCollisionWorld.h>
|
||
|
|
||
|
class btCollisionObject;
|
||
|
|
||
|
namespace MWPhysics
|
||
|
{
|
||
|
class Projectile;
|
||
|
|
||
|
class ProjectileConvexCallback : public btCollisionWorld::ClosestConvexResultCallback
|
||
|
{
|
||
|
public:
|
||
|
ProjectileConvexCallback(const btCollisionObject* me, const btVector3& from, const btVector3& to, Projectile* proj);
|
||
|
|
||
|
btScalar addSingleResult(btCollisionWorld::LocalConvexResult& result, bool normalInWorldSpace) override;
|
||
|
|
||
|
private:
|
||
|
const btCollisionObject* mMe;
|
||
|
Projectile* mProjectile;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|