조작이 둔할 때가 생기는데 뭘까?
This commit is contained in:
@@ -57,6 +57,7 @@ void Tick(veng::Engine& engine, std::float_t delta_time) {
|
||||
|
||||
if (!w_laststate) {
|
||||
player->needsUpdate = true;
|
||||
player->updateRedundantCount = 0;
|
||||
w_laststate = true;
|
||||
}
|
||||
} else {
|
||||
@@ -64,6 +65,7 @@ void Tick(veng::Engine& engine, std::float_t delta_time) {
|
||||
player_flame->visible = false;
|
||||
if (w_laststate) {
|
||||
player->needsUpdate = true;
|
||||
player->updateRedundantCount = 0;
|
||||
w_laststate = false;
|
||||
}
|
||||
}
|
||||
@@ -116,6 +118,7 @@ void Tick(veng::Engine& engine, std::float_t delta_time) {
|
||||
player->angular_velocity = right * 6.f;
|
||||
if (!ad_laststate) {
|
||||
player->needsUpdate = true;
|
||||
player->updateRedundantCount = 0;
|
||||
ad_laststate = true;
|
||||
}
|
||||
} else if (glfwGetKey(engine.vulkan_graphics->window->GetHandle(),
|
||||
@@ -124,6 +127,7 @@ void Tick(veng::Engine& engine, std::float_t delta_time) {
|
||||
player->angular_velocity = right * -6.f;
|
||||
if (!ad_laststate) {
|
||||
player->needsUpdate = true;
|
||||
player->updateRedundantCount = 0;
|
||||
ad_laststate = true;
|
||||
}
|
||||
} else {
|
||||
@@ -131,6 +135,7 @@ void Tick(veng::Engine& engine, std::float_t delta_time) {
|
||||
player->angular_velocity = right * 0.f;
|
||||
if (ad_laststate) {
|
||||
player->needsUpdate = true;
|
||||
player->updateRedundantCount = 0;
|
||||
ad_laststate = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user