Miglioramento precisione rotazioni

This commit is contained in:
2026-05-31 12:47:46 +02:00
parent 57412060b5
commit 28abf04232
12 changed files with 29 additions and 50 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ void Caviglia::update(sf::Clock cl){
sf::Shape* Caviglia::draw(ReferencePlane plane){
rb::Vector3 tmpPos = body.getPos();
rb::Vector3_s tmpRot = body.getRot();
rb::Vector3 tmpRot = body.getRot();
switch (plane)
{
+1 -1
View File
@@ -20,7 +20,7 @@ void Coscia::update(sf::Clock cl){
sf::Shape* Coscia::draw(ReferencePlane plane){
rb::Vector3 tmpPos = body.getPos();
rb::Vector3_s tmpRot = body.getRot();
rb::Vector3 tmpRot = body.getRot();
switch (plane)
+2 -2
View File
@@ -61,7 +61,7 @@ void Sensore::update(sf::Clock cl){
sf::Shape* Sensore::draw(ReferencePlane plane){
rb::Vector3_s tmpRot = body.getRot();
rb::Vector3 tmpRot = body.getRot();
rb::Vector3 tmpPos = body.getPos();
switch (plane)
@@ -105,7 +105,7 @@ void Sensore::calcRotWithG(unsigned int index){ // calcolo rotazione con valori
float tmpAY = acos(tmpSinY);
float tmpAZ = acos(tmpSinZ);
body.setRot(rb::Vector3_s{_Float16( tmpAY),_Float16( tmpAX),_Float16( tmpAZ) });
body.setRot(rb::Vector3{tmpAY, tmpAX, tmpAZ });
}
/*
+1 -1
View File
@@ -20,7 +20,7 @@ void Torso::update(sf::Clock cl){
sf::Shape* Torso::draw(ReferencePlane plane){
rb::Vector3_s tmpRot = body.getRot();
rb::Vector3 tmpRot = body.getRot();
rb::Vector3 tmpPos = body.getPos();