일단 오늘은 이걸로..

This commit is contained in:
2025-06-19 22:35:02 +09:00
parent 3e3769f912
commit 66dc91dab3
10 changed files with 115 additions and 26 deletions

View File

@@ -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;
}