Ça s'ra pas long.
This commit is contained in:
parent
0b5c30b693
commit
cfc7f7e01d
@ -99,7 +99,8 @@ void Connection::Run(World* world) {
|
|||||||
in = m_input_vector.at(m_last_in + 1);
|
in = m_input_vector.at(m_last_in + 1);
|
||||||
last = m_input_vector.at(m_last_in);
|
last = m_input_vector.at(m_last_in);
|
||||||
|
|
||||||
el = (float)(in.timestamp - last.timestamp) / 1000.;
|
el = (double)(in.timestamp - last.timestamp) / 1000.;
|
||||||
|
std::cout << 1. / el << std::endl;
|
||||||
player.get()->SetDirection(in.direction);
|
player.get()->SetDirection(in.direction);
|
||||||
player.get()->ApplyPhysics(player.get()->GetInput(in.keys.forward,
|
player.get()->ApplyPhysics(player.get()->GetInput(in.keys.forward,
|
||||||
in.keys.backward,
|
in.keys.backward,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user