#include "gamba.hpp" #include "collection_interface.hpp" #ifndef LOWER_BODY_H #define LOWER_BODY_H struct gamba_data{ unsigned int* dataPos; std::string cosciaData; std::string cavigliaData; }; class Lower_Body : public CollectionInterface{ private: int64_t prevT = 0; float velD = 0; float velS = 0; float posS = 0; float posD = 0; protected: Gamba* sx; Gamba* dx; Torso* t; PivotJoint* jsx; PivotJoint* jdx; bool visible = true; float alpha = 1; public: Lower_Body(rb::Vector3 pos, std::vector data); ~Lower_Body(); void update(sf::Clock cl, float multiplier) override; collection create(ReferencePlane plane) override; }; #endif