Disable physics of dragged selected parts

This commit is contained in:
MusicalProgrammer
2022-10-06 16:37:18 -04:00
parent b202337c81
commit c9db28a3a3
5 changed files with 43 additions and 20 deletions

View File

@@ -56,11 +56,13 @@ public:
void setAnchored(bool anchored);
bool isAnchored();
float getMass();
bool isDragging();
void setDragging(bool value);
//Collision
bool collides(PartInstance * part);
bool collides(Box);
//Properties
virtual std::vector<PROPGRIDITEM> getProperties();
virtual void PropUpdate(LPPROPGRIDITEM &pItem);
@@ -71,6 +73,7 @@ private:
Vector3 velocity;
Vector3 rotVelocity;
bool changed;
bool dragging;
Box itemBox;
GLuint glList;
};