Adding car model

This commit is contained in:
Dynamitos committed 2024-05-04 13:28:37 +02:00
1 parent f686f19c9d
commit 79bfb1fd65
101 files changed
+19 -778

No files matched your search

+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;