Miglioramento precisione rotazioni
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 });
|
||||
|
||||
}
|
||||
/*
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user