This commit is contained in:
RochesterX
2025-02-17 19:14:53 -05:00
parent cc659f0660
commit 49552421ee
3 changed files with 7 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ Camera:
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic: 0
orthographic size: 15
m_Depth: -1
m_CullingMask:

View File

@@ -303,7 +303,7 @@ Transform:
m_GameObject: {fileID: 403318057}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalPosition: {x: 0, y: 0, z: 20}
m_LocalScale: {x: 2, y: 2, z: 2}
m_ConstrainProportionsScale: 0
m_Children: []
@@ -4328,7 +4328,7 @@ Transform:
m_GameObject: {fileID: 1333158431}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalPosition: {x: 0, y: 0, z: 10}
m_LocalScale: {x: 2, y: 2, z: 2}
m_ConstrainProportionsScale: 0
m_Children: []
@@ -8165,7 +8165,7 @@ Transform:
m_GameObject: {fileID: 1996948202}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalPosition: {x: 0, y: 0, z: 15}
m_LocalScale: {x: 2, y: 2, z: 2}
m_ConstrainProportionsScale: 0
m_Children: []
@@ -8490,7 +8490,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2119246462}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0bdf61cebccfdae4eb5dfde2875a6b45, type: 3}
m_Name:

View File

@@ -27,7 +27,7 @@ public class PlayerCameraMovement : MonoBehaviour
playerAverage /= players.Count;
target = start * weight + playerAverage * (1 - weight);
transform.position = Vector3.Lerp(transform.position, target, speed * Time.deltaTime);
transform.position = new Vector3(transform.position.x, transform.position.y, -10);
transform.position = Vector3.Lerp(transform.position, new Vector3(target.x, target.y, transform.position.z), speed * Time.deltaTime);
transform.position = new Vector3(transform.position.x, transform.position.y, transform.position.z);
}
}