Files
FCG_VisualizzatoreCamminata/src/collections/headers/lower_body.hpp
T
2026-06-23 11:39:36 +02:00

42 lines
732 B
C++

#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<gamba_data> data);
~Lower_Body();
void update(sf::Clock cl, float multiplier) override;
collection create(ReferencePlane plane) override;
};
#endif