Adding car model
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user