animation test

This commit is contained in:
Caenneth 2024-06-24 13:27:59 +02:00
parent aaa50e6a28
commit 4c65103fd6
1 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,11 @@ void handleInputs(double deltaTime) {
cameraPosition.y -= deltaTime * 10;
}
if (glfwGetKey(window, GLFW_KEY_X) == GLFW_PRESS) {
SceneNode* chalkboard = findNodeByName("myChalkboard1", SceneNode* root);
chalkboard->transformation[3][1] += 0.1f; // Erhöht die Y-Position
}
if (glfwGetKey(window, GLFW_KEY_L) == GLFW_PRESS) {
objectPosition.x += deltaTime * 10;
}