Preparazione per controllo accelerazione tangenziale

This commit is contained in:
2026-06-20 17:40:06 +02:00
parent 51c620ef4d
commit ef2e09ef0f
7 changed files with 16 additions and 2 deletions
Binary file not shown.
@@ -13,6 +13,7 @@ struct collection{
class CollectionInterface{
public:
virtual collection create(ReferencePlane plane) = 0;
virtual void update() = 0;
virtual bool setTransparency(float alpha) = 0;
virtual ~CollectionInterface(){};
};
+1
View File
@@ -15,6 +15,7 @@ class Gamba : public CollectionInterface {
PieceInterface* getJointPiece();
void setDirection(Direction dir);
bool setTransparency(float alpha) override;
void update() {};
float getZ_Acc();
};
+1 -1
View File
@@ -26,7 +26,7 @@ protected:
public:
Lower_Body(rb::Vector3 pos, std::vector<gamba_data> data);
~Lower_Body();
void update() override;
void setVisibility(bool c);
bool setTransparency(float alpha) override;
collection create(ReferencePlane plane) override;
+4
View File
@@ -72,4 +72,8 @@ bool Lower_Body::setTransparency(float alpha){
dx->setTransparency(alpha);
t->setTransparency(alpha);
return true;
}
void Lower_Body::update(){
}
+2 -1
View File
@@ -26,7 +26,7 @@
//funzioni
void calcVel(const float Dtime);
void calcRot(const time_t Dtime);
void calcRot(const float Dtime);
void calcAcc(const Vector3 Dacc);
void calcTanAcc(const Vector3 Dacc);
void calcPos(const float Dtime);
@@ -45,6 +45,7 @@
void setRot(const Vector3 Nrot);
void setVel(const Vector3 Nacc);
void setAcc(const Vector3 Nvel);
void setTanAcc(const Vector3 Dacc, const Vector3 pos);
void step(const sf::Clock time);
//complesso, deve definire accelerazione e accelerazione tangenziale
+7
View File
@@ -97,4 +97,11 @@ void rigidbody::step(const sf::Clock time){
calcVel(dt);
}
void rigidbody::setTanAcc(const Vector3 Dacc, const Vector3 pos){
}
void rigidbody::calcRot(const float Dtime){
}