You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
757 B
C++
26 lines
757 B
C++
4 years ago
|
#ifndef OPENMW_MWPHYSICS_ACTORCONVEXCALLBACK_H
|
||
|
#define OPENMW_MWPHYSICS_ACTORCONVEXCALLBACK_H
|
||
5 years ago
|
|
||
|
#include <BulletCollision/CollisionDispatch/btCollisionWorld.h>
|
||
|
|
||
|
class btCollisionObject;
|
||
|
|
||
|
namespace MWPhysics
|
||
|
{
|
||
4 years ago
|
class ActorConvexCallback : public btCollisionWorld::ClosestConvexResultCallback
|
||
5 years ago
|
{
|
||
|
public:
|
||
4 years ago
|
ActorConvexCallback(const btCollisionObject *me, const btVector3 &motion, btScalar minCollisionDot, const btCollisionWorld * world);
|
||
5 years ago
|
|
||
4 years ago
|
btScalar addSingleResult(btCollisionWorld::LocalConvexResult& convexResult,bool normalInWorldSpace) override;
|
||
5 years ago
|
|
||
|
protected:
|
||
|
const btCollisionObject *mMe;
|
||
|
const btVector3 mMotion;
|
||
|
const btScalar mMinCollisionDot;
|
||
4 years ago
|
const btCollisionWorld * mWorld;
|
||
5 years ago
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|