Made anchoring togglable in play mode

This commit is contained in:
Vulpovile
2022-10-02 16:44:59 -07:00
parent 8c47024960
commit df77572fe7
5 changed files with 20 additions and 8 deletions

View File

@@ -29,7 +29,6 @@ public:
//Variables
Color3 color;
bool canCollide;
bool anchored;
dBodyID physBody;
dGeomID physGeom[3];
@@ -54,6 +53,8 @@ public:
void setShape(Enum::Shape::Value shape);
void setChanged();
void setSurface(int face, Enum::SurfaceType::Value surface);
void setAnchored(bool anchored);
bool isAnchored();
float getMass();
//Collision
@@ -64,6 +65,7 @@ public:
virtual std::vector<PROPGRIDITEM> getProperties();
virtual void PropUpdate(LPPROPGRIDITEM &pItem);
private:
bool anchored;
Vector3 position;
Vector3 size;
Vector3 velocity;