Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jme3-core/src/main/java/com/jme3/input/FlyByCamera.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2025 jMonkeyEngine
* Copyright (c) 2009-2026 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -447,7 +447,7 @@ protected void zoomCamera(float value) {
} else { // perspective projection
float newFov = cam.getFov() + value * 0.1F * zoomSpeed;
// Use a small epsilon to prevent near-zero FoV issues
if (newFov > 0.01f) {
if (newFov > 0.01f && newFov < 179f) {
cam.setFov(newFov);
}
}
Expand Down
Loading