일단 오늘은 이걸로..
This commit is contained in:
@@ -53,10 +53,15 @@ void Tick(veng::Engine& engine, std::float_t delta_time) {
|
||||
if (glfwGetKey(engine.vulkan_graphics->window->GetHandle(), GLFW_KEY_W) ==
|
||||
GLFW_PRESS) {
|
||||
player->linear_acceleration = glm::normalize(forward) * 10.f;
|
||||
player_flame->linear_velocity = player->linear_velocity;
|
||||
player_flame->position = player->position;
|
||||
player_flame->angular_velocity = player->angular_velocity;
|
||||
player_flame->rotation = player->rotation;
|
||||
player_flame->visible = true;
|
||||
|
||||
if (!w_laststate) {
|
||||
player->needsUpdate = true;
|
||||
player_flame->needsUpdate = true;
|
||||
player->updateRedundantCount = 0;
|
||||
w_laststate = true;
|
||||
}
|
||||
@@ -65,6 +70,7 @@ void Tick(veng::Engine& engine, std::float_t delta_time) {
|
||||
player_flame->visible = false;
|
||||
if (w_laststate) {
|
||||
player->needsUpdate = true;
|
||||
player_flame->needsUpdate = true;
|
||||
player->updateRedundantCount = 0;
|
||||
w_laststate = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user