Adding car model

This commit is contained in:
Dynamitos
2024-05-04 13:28:37 +02:00
parent f686f19c9d
commit 79bfb1fd65
101 changed files with 19 additions and 778 deletions
+6 -1
View File
@@ -9,12 +9,17 @@ void FlyCamSystem::update(Component::KeyboardInput& input, Component::Camera& ca
float cameraMove = static_cast<float>(deltaTime);
if(input.keys[KeyCode::KEY_LEFT_SHIFT])
{
cameraMove *= 100;
cameraMove *= 500;
}
Vector forward = transform.getForward();
Vector side = transform.getRight();
Vector moveVector = Vector();
if (input.keys[KeyCode::KEY_J])
{
std::cout << camera.getCameraPosition() << std::endl;
}
if(input.keys[KeyCode::KEY_W])
{
moveVector += forward * cameraMove;