rename files, fix Linux build
This commit is contained in:
43
Demos3/bullet2/BasicDemo/Bullet2RigidBodyDemo.h
Normal file
43
Demos3/bullet2/BasicDemo/Bullet2RigidBodyDemo.h
Normal file
@@ -0,0 +1,43 @@
|
||||
#ifndef BULLET2_RIGIDBODY_DEMO_H
|
||||
#define BULLET2_RIGIDBODY_DEMO_H
|
||||
|
||||
#include "LinearMath/btVector3.h"
|
||||
|
||||
#include "../../AllBullet2Demos/BulletDemoInterface.h"
|
||||
|
||||
class Bullet2RigidBodyDemo : public BulletDemoInterface
|
||||
{
|
||||
protected:
|
||||
class btDiscreteDynamicsWorld* m_dynamicsWorld;
|
||||
class btCollisionDispatcher* m_dispatcher;
|
||||
class btBroadphaseInterface* m_bp;
|
||||
class btCollisionConfiguration* m_config;
|
||||
class btConstraintSolver* m_solver;
|
||||
|
||||
class btRigidBody* m_pickedBody;
|
||||
class btTypedConstraint* m_pickedConstraint;
|
||||
btVector3 m_oldPickingPos;
|
||||
btVector3 m_hitPos;
|
||||
btScalar m_oldPickingDist;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
class SimpleOpenGL3App* m_glApp;
|
||||
|
||||
Bullet2RigidBodyDemo(SimpleOpenGL3App* app);
|
||||
virtual void initPhysics();
|
||||
virtual void exitPhysics();
|
||||
|
||||
virtual ~Bullet2RigidBodyDemo();
|
||||
btVector3 getRayTo(int x,int y);
|
||||
virtual bool mouseMoveCallback(float x,float y);
|
||||
virtual bool mouseButtonCallback(int button, int state, float x, float y);
|
||||
virtual bool keyboardCallback(int key, int state)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif //BULLET2_RIGIDBODY_DEMO_H
|
||||
Reference in New Issue
Block a user