修改相机参数设置

This commit is contained in:
李浩 2025-03-11 13:14:12 +08:00
parent 4c3a422f61
commit ab77d101bb

View File

@ -48,14 +48,15 @@ public class Show3DCamera : MonoBehaviour
yaw = 0;
pitch = 0;
// 初始化相机位置
this.inputRect = inputRect;
this.targetPos = target.transform.position;
this.rotateSpeed = rotateSpeed;
this.moveSpeed = moveSpeed;
this.distance = distance;
this.distanceMin = distanceMin;
this.distanceMax = distanceMax;
this.pitchMinMax = new Vector2(pitchMin, pitchMax);
//this.rotateSpeed = rotateSpeed;
//this.moveSpeed = moveSpeed;
//this.distance = distance;
//this.distanceMin = distanceMin;
//this.distanceMax = distanceMax;
//this.pitchMinMax = new Vector2(pitchMin, pitchMax);
// 初始化相机位置
offset = new Vector3(0, 0, -distance);