Skip to content

Commit

Permalink
[camera] increased movement speed and jump force per Kinjal's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Oct 15, 2024
1 parent 566999d commit 0c5dca4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/World/Components/Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ namespace Spartan
{
Vector3 translation = (movement_acceleration + m_movement_scroll_accumulator) * movement_direction;

// on shift, double the translation
// on shift, increase the translation
if (Input::GetKey(KeyCode::Shift_Left))
{
translation *= 3.0f;
Expand Down Expand Up @@ -519,7 +519,7 @@ namespace Spartan
if (is_grounded)
{
Vector3 velocity_current = m_physics_body_to_control->GetLinearVelocity();
Vector3 velocity_new = Vector3(m_movement_speed.x * 50.0f, velocity_current.y, m_movement_speed.z * 50.0f);
Vector3 velocity_new = Vector3(m_movement_speed.x * 70.0f, velocity_current.y, m_movement_speed.z * 70.0f);
m_physics_body_to_control->SetLinearVelocity(velocity_new);
}

Expand Down Expand Up @@ -568,7 +568,7 @@ namespace Spartan
{
if (is_grounded)
{
m_physics_body_to_control->ApplyForce(Vector3::Up * 400.0f, PhysicsForce::Impulse);
m_physics_body_to_control->ApplyForce(Vector3::Up * 450.0f, PhysicsForce::Impulse);
}
}
}
Expand Down

0 comments on commit 0c5dca4

Please sign in to comment.