카메라 스프링 재적용
This commit is contained in:
1 parent
711fc4c93d
commit
9949ec80fb
1 file changed
+2
-2
@@ -31,8 +31,8 @@ void Tick(veng::Engine& engine, std::float_t delta_time) {
|
||||
(-stiffness * displacement - damping * camera_lag->linear_velocity) *
|
||||
delta_time;
|
||||
|
||||
camera_lag->linear_velocity = glm::vec3(0);
|
||||
camera_lag->position = player->position;
|
||||
/*camera_lag->linear_velocity = glm::vec3(0);
|
||||
camera_lag->position = player->position;*/
|
||||
|
||||
engine.view = glm::lookAt(
|
||||
glm::vec3(camera_lag->position.x, camera_lag->position.y, -5.f),
|
||||
|
||||
Reference in new issue
Block a user