Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // w Update()
- // przykładowe klawisze, posZ to nowa zmienna zdefiniowana w klasie Game
- if (Keyboard::isPressed(GLFW_KEY_LEFT_CONTROL))
- {
- posZ = posZ - speed;
- }
- if (Keyboard::isPressed(GLFW_KEY_SPACE))
- {
- posZ = posZ + speed;
- }
- // zmienną posZ należy zastąpić dotychczasowe wartości w funkcjach dla pozycji kamery dla osi Z
- // np: camera.setPosition(glm::vec3(posX, posY, posZ)) oraz w camera.setTarget
- // a także w Redraw() przy rysowaniu czajnika
- // testModel->GetMesh(i)->getLocalWorld() *
- // glm::translate(glm::mat4(1.0f), glm::vec3( posX, posY, posZ)) *
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement