|
|
|
|
@ -201,6 +201,7 @@ static void zoom_camera(RenderState* render_state, float distance_delta) {
|
|
|
|
|
Vector3 direction = Vector3Normalize(to_target); |
|
|
|
|
float camera_distance = Vector3Length(to_target); |
|
|
|
|
|
|
|
|
|
// FIXME: min_distance, distance_delta, and 'angle_speed' should be configurable
|
|
|
|
|
float min_distance = 0.1f; |
|
|
|
|
if (camera_distance - distance_delta <= min_distance) return; |
|
|
|
|
|
|
|
|
|
|