add support for picking, using point 2 point constraint

allow to remove constraints by unique id
added tiny wavefront loader, plan to use this instead of existing slow wavefront loader
This commit is contained in:
erwin coumans
2013-07-10 00:21:23 -07:00
parent 9610b369a3
commit 2aad8419b7
18 changed files with 1005 additions and 14 deletions

View File

@@ -2,6 +2,7 @@
#define GPU_RIGID_BODY_DEMO_H
#include "../GpuDemo.h"
#include "Bullet3Common/b3Vector3.h"
class GpuRigidBodyDemo : public GpuDemo
{
@@ -38,6 +39,10 @@ public:
virtual void clientMoveAndDisplay();
//for picking
b3Vector3 getRayTo(int x,int y);
virtual bool mouseMoveCallback(float x,float y);
virtual bool mouseButtonCallback(int button, int state, float x, float y);
};