Fix dei warning e posizione texture
This commit is contained in:
Binary file not shown.
@@ -81,7 +81,7 @@ void Lower_Body::update(sf::Clock cl, float multiplier){
|
|||||||
float dxAcc = dx->getZ_Acc() ;
|
float dxAcc = dx->getZ_Acc() ;
|
||||||
|
|
||||||
int64_t Dtime = cl.getElapsedTime().asMicroseconds();
|
int64_t Dtime = cl.getElapsedTime().asMicroseconds();
|
||||||
if (prevT == 0) prevT >= Dtime;
|
if (prevT == 0) prevT = Dtime;
|
||||||
float dt = (float(Dtime) / 1000000.0) - (float(prevT) / 1000000.0);
|
float dt = (float(Dtime) / 1000000.0) - (float(prevT) / 1000000.0);
|
||||||
prevT = Dtime;
|
prevT = Dtime;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "../../rigidbody/headers/rb.hpp"
|
#include "../../rigidbody/headers/rb.hpp"
|
||||||
|
|
||||||
#define TEXTUREPATH std::string("../../../textures/")
|
#define TEXTUREPATH std::string("./../../textures/")
|
||||||
|
|
||||||
#ifndef PIECE_INTERFACE_H
|
#ifndef PIECE_INTERFACE_H
|
||||||
#define PIECE_INTERFACE_H
|
#define PIECE_INTERFACE_H
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ void Sensore::calcRotWithG(unsigned int index){ // calcolo rotazione con valori
|
|||||||
}
|
}
|
||||||
|
|
||||||
float Sensore::getZ_Acc(){
|
float Sensore::getZ_Acc(){
|
||||||
int id = *dataPos;
|
//int id = *dataPos;
|
||||||
float tmpAcc = 0;
|
float tmpAcc = 0;
|
||||||
|
|
||||||
rb::Vector3 acc = body.getAcc();
|
rb::Vector3 acc = body.getAcc();
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ void rigidbody::calcPos(const float Dtime){
|
|||||||
|
|
||||||
void rigidbody::step(const sf::Clock time, float multiplier){
|
void rigidbody::step(const sf::Clock time, float multiplier){
|
||||||
int64_t Dtime = time.getElapsedTime().asMicroseconds();
|
int64_t Dtime = time.getElapsedTime().asMicroseconds();
|
||||||
if (prevT == 0) prevT >= Dtime;
|
if (prevT == 0) prevT = Dtime;
|
||||||
|
|
||||||
|
|
||||||
float dt = ((float(Dtime) / 1000000.0) - (float(prevT) / 1000000.0)) * multiplier;
|
float dt = ((float(Dtime) / 1000000.0) - (float(prevT) / 1000000.0)) * multiplier;
|
||||||
|
|||||||
Reference in New Issue
Block a user