Made physics work
This commit is contained in:
@@ -54,6 +54,7 @@ public:
|
||||
void setShape(Enum::Shape::Value shape);
|
||||
void setChanged();
|
||||
void setSurface(int face, Enum::SurfaceType::Value surface);
|
||||
float getMass();
|
||||
|
||||
//Collision
|
||||
bool collides(PartInstance * part);
|
||||
@@ -70,4 +71,4 @@ private:
|
||||
bool changed;
|
||||
Box itemBox;
|
||||
GLuint glList;
|
||||
};
|
||||
};
|
||||
@@ -12,7 +12,7 @@ public:
|
||||
dSpaceID physSpace;
|
||||
dJointGroupID contactgroup;
|
||||
|
||||
void createBody(PartInstance* partInstance);
|
||||
void createBody(PartInstance* partInstance, float stepSize);
|
||||
void deleteBody(PartInstance* partInstance);
|
||||
void updateBody(PartInstance* partInstance, CoordinateFrame * cFrame);
|
||||
};
|
||||
Reference in New Issue
Block a user