Fix: Remove camera view corruption
- Removed line in animateMovement that mutated CAMERA_VIEWS static constants. - This prevents the camera offset from skewing as the player moves away from the origin, ensuring the isometric view angle remains consistent throughout the entire dungeon.
This commit is contained in:
@@ -675,10 +675,6 @@ async function animateMovement() {
|
||||
controls.target.copy(newTarget);
|
||||
camera.position.copy(newTarget).add(currentOffset);
|
||||
|
||||
// Actualizar el target de la vista actual para futuras referencias
|
||||
CAMERA_VIEWS[SESSION.currentView].target = { x: newTarget.x, y: newTarget.y, z: newTarget.z };
|
||||
|
||||
|
||||
SESSION.selectedUnitId = null;
|
||||
updateSelectionVisuals();
|
||||
SESSION.isAnimating = false;
|
||||
|
||||
Reference in New Issue
Block a user