Aggiustata direzione gambe su piano YZ

This commit is contained in:
2026-06-20 10:51:27 +02:00
parent e440779338
commit 4d8d1316e0
4 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ void Sensore::calcRotWithG(unsigned int index){ // calcolo rotazione con valori
float tmpSinZ = -grav[2] / modG;
float tmpAX = acos(dir*tmpSinX);
float tmpAY = acos(tmpSinY);
float tmpAY = acos(dir*tmpSinY);
float tmpAZ = acos(tmpSinZ);
body.setRot(rb::Vector3{tmpAY, tmpAX, tmpAZ });