Preparazione per controllo accelerazione tangenziale
This commit is contained in:
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(){};
|
||||
};
|
||||
|
||||
@@ -15,6 +15,7 @@ class Gamba : public CollectionInterface {
|
||||
PieceInterface* getJointPiece();
|
||||
void setDirection(Direction dir);
|
||||
bool setTransparency(float alpha) override;
|
||||
void update() {};
|
||||
float getZ_Acc();
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -72,4 +72,8 @@ bool Lower_Body::setTransparency(float alpha){
|
||||
dx->setTransparency(alpha);
|
||||
t->setTransparency(alpha);
|
||||
return true;
|
||||
}
|
||||
|
||||
void Lower_Body::update(){
|
||||
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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){
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user